mercurial: patch shebangs in all scripts

This commit is contained in:
pacien 2021-11-17 20:30:11 +01:00
parent 7a5371683c
commit f50b6821dc

View file

@ -32,6 +32,15 @@ let
} else null;
cargoRoot = if rustSupport then "rust" else null;
postPatch = ''
patchShebangs .
for f in **/*.{py,c,t}; do
# not only used in shebangs
substituteAllInPlace "$f" '/bin/sh' '${stdenv.shell}'
done
'';
propagatedBuildInputs = lib.optional re2Support fb-re2
++ lib.optional gitSupport pygit2
++ lib.optional highlightSupport pygments;