diff options
| author | Fabian Möller <fabianm88@gmail.com> | 2025-01-31 08:29:56 +0100 |
|---|---|---|
| committer | Fabian Möller <fabianm88@gmail.com> | 2025-01-31 08:29:56 +0100 |
| commit | c5b890c4139f854329caa6232c02fe2a592f3847 (patch) | |
| tree | 47afca594200ca6cb2c901fd7e1a1f0177313b9f /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 8a2dfc70b083ecf6c9c9824b13c3853e9b7b4493 (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
