From e50532891d83ce7e484ebc816331de51a6272654 Mon Sep 17 00:00:00 2001 From: Avimitin Date: Tue, 10 Sep 2024 12:34:15 +0800 Subject: [PATCH] [nix] fix VCS daidir write permission issue Signed-off-by: Avimitin --- templates/chisel/nix/gcd/vcs.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/chisel/nix/gcd/vcs.nix b/templates/chisel/nix/gcd/vcs.nix index fd8f986..098851e 100644 --- a/templates/chisel/nix/gcd/vcs.nix +++ b/templates/chisel/nix/gcd/vcs.nix @@ -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)