-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
docs: use overrideAttrs instead of overrideDerivation #20001
docs: use overrideAttrs instead of overrideDerivation #20001
Conversation
@aneeshusa, thanks for your PR! By analyzing the history of the files in this pull request, we identified @thatdocslady, @rvl and @fpletz to be potential reviewers. |
bcc07d0
to
2df7eaa
Compare
<programlisting> | ||
nixpkgs.config.packageOverrides = pkgs: { | ||
hello = pkgs.lib.overrideDerivation pkgs.hello (attrs: { | ||
hello = pkgs.lib.overrideAttrs pkgs.hello (attrs: { |
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.
This should be:
hello = pkgs.hello.overrideAttrs (oldAttrs: {
separateDebugInfo = true;
});
]; | ||
environment.systemPackages = [ | ||
(pkgs.lib.overrideAttrs pkgs.emacs (oldAttrs: { | ||
name = "emacs-25.0-pre"; |
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.
There is no lib.overrideAttrs
, only emacs.overrideAttrs
it seems.
2df7eaa
to
309f414
Compare
309f414
to
3d99eea
Compare
I just slightly amended one formulation in 559ddae. |
Motivation for this change
Fixes #10721.
cc @vcunat
Things done
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)Update the docs to use
overrideAttrs
instead ofoverrideDerivation
.There are also ~110 other uses of overrideDerivation in actual Nix code, which I will save for separate PR(s).