Skip to content

Commit

Permalink
[nix] fix VCS daidir write permission issue
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <dev@avimit.in>
  • Loading branch information
Avimitin committed Sep 10, 2024
1 parent a578a38 commit e505328
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions templates/chisel/nix/gcd/vcs.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ stdenv.mkDerivation (finalAttr: {
inherit rtl;

tests.simple-sim = runCommand "${binName}-test" { __noChroot = true; } ''
cp -r ${finalAttr.finalPackage}/lib/${binName}.daidir .
chmod -R +w ${binName}.daidir
# Combine stderr and stdout and redirect them to tee
# So that we can have log saving to output and also printing to stdout
${finalAttr.finalPackage}/bin/${binName} &> >(tee $out)
Expand Down

0 comments on commit e505328

Please sign in to comment.