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

scripts: use lib.getExe to fetch the package binary by default #1756

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

mmlb
Copy link
Contributor

@mmlb mmlb commented Feb 27, 2025

Similar to #1745 but for scripts now.

`scripts.<name>.binary` is now an optional override, in case
`lib.getExe` (i.e. `meta.mainProgram`) returns something that doesn't
work.

This fixes an issue in nixpkgs/master where the pname for bash is
changing to bash-interactive by default. Using the pname as the name of
the binary breaks scripts.
@domenkozar domenkozar merged commit 974ef39 into cachix:main Feb 27, 2025
@mmlb mmlb deleted the fix-binary-for-scripts branch February 27, 2025 19:38
sandydoo added a commit that referenced this pull request Mar 1, 2025
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 this pull request may close these issues.

2 participants