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

Hardcoded shebang doesn't work on NixOS #7

Closed
MatteoJoliveau opened this issue Feb 21, 2022 · 2 comments · Fixed by #8
Closed

Hardcoded shebang doesn't work on NixOS #7

MatteoJoliveau opened this issue Feb 21, 2022 · 2 comments · Fixed by #8

Comments

@MatteoJoliveau
Copy link
Contributor

Hi! I use a Linux distro called NixOS which has a very particular filesystem layout and package management.
Tl;dr, executable are not found in the usual locations (e.g. /bin or /usr/local/bin) but must be sourced from PATH. The only executable in a standard location is /usr/bin/env.

This means that the scripts cargo-zigbuild generates do not work on NixOS because the shebang declare #!/bin/bash as the interpreter, which cannot be found.

Would you be willing to accept a PR that changes those headers to #!/usr/bin/env bash? This will work on all Linux distros and, in addition to supporting NixOS as a platform, would also cover any system with non-standard or customized bash installs.

@messense
Copy link
Member

messense commented Feb 21, 2022

Sure!

@messense
Copy link
Member

Released in v0.5.1.

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

Successfully merging a pull request may close this issue.

2 participants