mercurial: patch shebangs in all scripts

main
pacien 3 years ago
parent 7a5371683c
commit f50b6821dc
  1. 9
      pkgs/applications/version-management/mercurial/default.nix

@ -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;

Loading…
Cancel
Save