--apply
for nix build
#421
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#421
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
nix eval
has--apply
to run an installable through a function before printing it.nix build
does not. this is quite pointless becauseeval
ing something with--apply
and building the resulting derivation in two separate steps works just fine.Describe the solution you'd like
allow
--apply
innix build
.I frequently use
nix-shell -p
overnix shell
because of the latter's inability to reference an expression relative to Nixpkgs, rather than simply an attrpath.nix shell --apply
would provide an alternative (though might not be the best possible ergonomics for this case?).I believe there is a stale CppNix PR to make
--apply
work for all installables; we should see if that's cherry-pickable