1
0
Fork 0
mirror of https://github.com/NixOS/nix-pills synced 2024-09-19 04:00:13 -04:00

Pill 20: allow wrapped hello to be executed

As written, this produces a script without the execute bit
set, which may confuse users who want to try actually running
it after building.
This commit is contained in:
Misty De Méo 2023-03-31 12:54:30 -07:00
parent d5a77c7225
commit 560d0beac7
No known key found for this signature in database
GPG key ID: 74CF3AD781D5453D
2 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@ let
mkdir -p "$out/bin"
echo "#! ${stdenv.shell}" >> "$out/bin/hello"
echo "exec $(which hello)" >> "$out/bin/hello"
chmod 0755 "$out/bin/hello"
'';
};

View file

@ -24,6 +24,7 @@ let
mkdir -p "$out/bin"
echo "#! ${stdenv.shell}" >> "$out/bin/hello"
echo "exec $(which hello)" >> "$out/bin/hello"
chmod 0755 "$out/bin/hello"
'';
};