Skip to content

Commit b5a3654

Browse files
authored
Merge pull request #18 from Bootstrap-Academy/version-wrapper
build: set argv0 correctly in version wrapper
2 parents af3648e + 0c5767a commit b5a3654

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

nix/packages.nix

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,12 @@
2323
stdenv.mkDerivation {
2424
inherit (drv) pname;
2525
inherit version;
26-
dontUnpack = true;
26+
src = drv;
2727
nativeBuildInputs = [makeWrapper];
2828
installPhase = ''
29-
cp -a ${drv} $out
30-
chmod -R +w $out
29+
cp -r . $out
3130
for bin in $out/bin/*; do
32-
wrapProgram $bin --set ACADEMY_VERSION ${lib.escapeShellArg version}
31+
wrapProgram $bin --argv0 $(basename $bin) --set ACADEMY_VERSION ${lib.escapeShellArg version}
3332
done
3433
'';
3534
passthru.unwrapped = drv;

0 commit comments

Comments
 (0)