Skip to content

Commit

Permalink
default.nix: remove obsolete brute-force shebang patching (breaks wit…
Browse files Browse the repository at this point in the history
…h newer nix)
  • Loading branch information
eugeneia committed Apr 5, 2022
1 parent d1601f4 commit 7086845
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@ stdenv.mkDerivation rec {

patchPhase = ''
patchShebangs .
# some hardcodeism
for f in $(find src/program/snabbnfv/ -type f); do
substituteInPlace $f --replace "/bin/bash" "${bash}/bin/bash"
done
'' + lib.optionalString supportOpenstack ''
# We need a way to pass $PATH to the scripts
sed -i '2iexport PATH=${git}/bin:${mariadb}/bin:${which}/bin:${procps}/bin:${coreutils}/bin' src/program/snabbnfv/neutron_sync_master/neutron_sync_master.sh.inc
Expand Down

0 comments on commit 7086845

Please sign in to comment.