treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck#271241
treewide: finalAttrs.doCheck -> finalAttrs.finalPackage.doCheck#271241roberth merged 1 commit intoNixOS:masterfrom
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 |
SuperSandro2000
left a comment
There was a problem hiding this comment.
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 = relaxedsandbox = truenix-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.