summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorFabian Möller <fabianm88@gmail.com>2025-01-31 08:29:56 +0100
committerFabian Möller <fabianm88@gmail.com>2025-01-31 08:29:56 +0100
commitc5b890c4139f854329caa6232c02fe2a592f3847 (patch)
tree47afca594200ca6cb2c901fd7e1a1f0177313b9f /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent8a2dfc70b083ecf6c9c9824b13c3853e9b7b4493 (diff)
patch-shebangs: fix `env -S` with only one argument
In case `patchShebangs` encounters an `env -S` interpreter with only one argument following, it would duplicate that argument and most likely invalidate the resulting interpreter line. Reproducer: ```nix (import <nixpkgs> {}).writeTextFile { name = "patch-shebangs-env-s"; text = '' #!/bin/env -S bash ''; executable = true; checkPhase = '' patchShebangs $out ''; } ``` The resulting file would contain ``` #!/nix/store/pw…fk-coreutils-9.5/bin/env -S /nix/store/4f…g60-bash-5.2p37/bin/bash bash ``` instead of the correct ``` #!/nix/store/pw…fk-coreutils-9.5/bin/env -S /nix/store/4f…g60-bash-5.2p37/bin/bash ```
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions