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

Feature Request: --apply option for nix build command #11698

Open
SharzyL opened this issue Oct 15, 2024 · 0 comments
Open

Feature Request: --apply option for nix build command #11698

SharzyL opened this issue Oct 15, 2024 · 0 comments
Labels
feature Feature request or proposal

Comments

@SharzyL
Copy link
Contributor

SharzyL commented Oct 15, 2024

Currently nix eval accepts --apply option, which applies a function to the specified installable. However, nix build has no such option, causing inconsistency and confusions. nix build --apply is especially useful when trying to build an overrided package.

$ nix eval nixpkgs#git --apply 'p: (p.override { guiSupport = false; }).outPath'
"/nix/store/0l63mqr7qx1asjxfz86j4zbs4758gn98-git-2.46.0"

$ nix build nixpkgs#git --apply 'p: p.override { guiSupport = false; }'
error: unrecognised flag '--apply'
Try 'nix --help' for more information.
@SharzyL SharzyL added the feature Feature request or proposal label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal
Projects
None yet
Development

No branches or pull requests

1 participant