-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
Reopen #263082 "make-derivation.nix: lib.warn if drv.__spliced missing" #283295
base: master
Are you sure you want to change the base?
Conversation
In order to avoid setting off the unspliced-dependency check, we need to make sure that the targetPackages.stdenv.cc.bintools used by gcc gets spliced. In order for it to be spliced, it needs a top-level entry in all-packages.nix. Therefore, this commit adds one. This also causes us to stop abusing targetPackages to access the linker, which is a good thing.
This commit adds a `lib.warn` check to stdenv.mkDerivation, causing it to emit a warning if a dependency which ought to be spliced in fact is not.
Co-authored-by: Artturi <Artturin@artturin.com>
…s in buildInputs" This reverts commit 0899b6b8746790eec9dc49ea4f4a6c3def072e3b.
ec58a9e
to
f3b4dee
Compare
4e9b61c
to
3559fb2
Compare
# `pkgsBuildHost`. | ||
# | ||
# Please take a moment to try to fix your PR. If you | ||
# can't get it fixed, ping @amjoseph-nixpkgs who can |
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 probably changed than:
# can't get it fixed, ping @amjoseph-nixpkgs who can | |
# can't get it fixed, ping @amjoseph-nixpkgs who can |
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.
@Mic92 it looks like the suggested change is what's currently there. The buttons to accept the change are greyed out.
Description of changes
Reopen @amjoseph-nixpkgs's #263082
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.