-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
stdenvAdapters.extendMkDerivationArgs: move from let-in #350350
base: master
Are you sure you want to change the base?
stdenvAdapters.extendMkDerivationArgs: move from let-in #350350
Conversation
Expose the previously internal extendMkDerivationArgs as a stdenv adapter for out-of-tree use
439bb1d
to
3a78ad6
Compare
requestCcache = extendMkDerivationArgs | ||
(oldAttrs: { requiredSysteFeatures = oldAttrs.requiredSysteFeatures or [ ] ++ [ "ccache" ]; }); | ||
*/ | ||
extendMkDerivationArgs = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fwiw overrideMkDerivationArgs
would have been a more honest name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, I think you're right. Internally since extension
is passed to overrideAttrs
, it's a more descriptive name which hopefully indicates extension
can be of the form final: prev: blarg
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but the merge conflict needs to be fixed... and I'm curious about what your thoughts are on renaming the exposed function?
|
||
|
||
/* Use the trace output to report all processed derivations with their | ||
license name. | ||
licen:se name. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bad find/replace?
requestCcache = extendMkDerivationArgs | ||
(oldAttrs: { requiredSysteFeatures = oldAttrs.requiredSysteFeatures or [ ] ++ [ "ccache" ]; }); | ||
*/ | ||
extendMkDerivationArgs = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm, I think you're right. Internally since extension
is passed to overrideAttrs
, it's a more descriptive name which hopefully indicates extension
can be of the form final: prev: blarg
.
Marking as draft until merge conflicts are resolved. Please ping me when ready again! |
Addresses #306953 but also I needed this to play with ccache
CC @Ericson2314 who I think authored the piece?
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.