-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck #271241
Conversation
This will respect `doCheck = false;` overrides, common for cross.
a612bb9
to
ad5e744
Compare
Doesn't it already?
Fwiw, it wouldn't work with cleanAttrs when going through |
Consider: nixpkgs/pkgs/development/libraries/libspatialindex/default.nix Lines 25 to 27 in ad5e744
On master, without
with this PR:
|
Right, I forgot that |
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 is super unintuitive and I expect that you can create such a PR every 6 months. Can we somehow prevent this or do something to prevent this error or fix the underlying issue?
Either the cross logic needs to take place during the |
It would be a bad idea to set this by default in mkDerivation, would it? |
doCheck is by default false as i understand. |
A redesign of
Note to self: put these two comments under a new issue to further discuss such a design, because this is starting to go off-topic, especially possible responses, and ping the Nixpkgs architecture team. |
We could maybe lift most cross logic out of stdenv.mkDerivation and rather compose it in using overrideAttrs. |
But onto something more immediately actionable: are we good to merge this? |
Yes, thank you for reminding me. Architecture improvements (like I suggested) should follow from things we find problematic in the code, not the opposite where we wait for beautiful elegant whatever before we solve our actual problems. |
Description of changes
This will respect
doCheck = false;
overrides, common for cross.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/
)Priorities
Add a 👍 reaction to pull requests you find important.