Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patchShebang breaks scripts on macOS #22

Open
tristanpemble opened this issue Aug 19, 2021 · 0 comments
Open

patchShebang breaks scripts on macOS #22

tristanpemble opened this issue Aug 19, 2021 · 0 comments

Comments

@tristanpemble
Copy link

the default patchShebang functionality ends up with non-functional scripts on macOS:

./result/bin/composer: line 2: ?php: No such file or directory
./result/bin/composer: line 4: syntax error near unexpected token `{'
./result/bin/composer: line 4: `if (PHP_SAPI !== 'cli' && PHP_SAPI !== 'phpdbg') {'

relevant NixOS/nixpkgs#2146, NixOS/nixpkgs#23018

it seems most PHP derivations handle this on their own (e.g. NixOS/nixpkgs#87406)

is this something that can/should be handled by composer2nix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant