We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af3648e + 0c5767a commit b5a3654Copy full SHA for b5a3654
nix/packages.nix
@@ -23,13 +23,12 @@
23
stdenv.mkDerivation {
24
inherit (drv) pname;
25
inherit version;
26
- dontUnpack = true;
+ src = drv;
27
nativeBuildInputs = [makeWrapper];
28
installPhase = ''
29
- cp -a ${drv} $out
30
- chmod -R +w $out
+ cp -r . $out
31
for bin in $out/bin/*; do
32
- wrapProgram $bin --set ACADEMY_VERSION ${lib.escapeShellArg version}
+ wrapProgram $bin --argv0 $(basename $bin) --set ACADEMY_VERSION ${lib.escapeShellArg version}
33
done
34
'';
35
passthru.unwrapped = drv;
0 commit comments