nixpkgs-lint: patch shebang

This commit is contained in:
Peder Bergebakken Sundt 2024-05-25 01:00:03 +02:00
parent 93a707cfe2
commit d6823f4211

@ -13,6 +13,9 @@ stdenv.mkDerivation {
''
mkdir -p $out/bin
cp ${./nixpkgs-lint.pl} $out/bin/nixpkgs-lint
# make the built version hermetic
substituteInPlace $out/bin/nixpkgs-lint \
--replace-fail "#! /usr/bin/env nix-shell" "#! ${lib.getExe perl}"
wrapProgram $out/bin/nixpkgs-lint --set PERL5LIB $PERL5LIB
'';