treewide: Fix finalAttrs.doCheck by explicitly setting doCheck to the conditional in mkDerivation#434550
treewide: Fix finalAttrs.doCheck by explicitly setting doCheck to the conditional in mkDerivation#434550Artturin wants to merge 1 commit intoNixOS:masterfrom
finalAttrs.doCheck by explicitly setting doCheck to the conditional in mkDerivation#434550Conversation
0c67139 to
6406e79
Compare
finalAttrs.doChecks which do not function correctly when cross-compilingfinalAttrs.doCheck by explicitly setting doCheck to the conditional in mkDerivation
6406e79 to
1b0f217
Compare
…he conditional in mkDerivation `finalAttrs.doCheck` does not include the conditionals in `mkDerivation` which disable `doCheck` on `!canExecute` cross. This is better than changing all `finalAttrs.doCheck` to `finalAttrs.finalPackage.doCheck` because it works without conditional `outputs` and it addresses the comment in `mkDerivation` about not using `doCheck = true`
1b0f217 to
e5becbe
Compare
Is it a longer term goal to update the implementation of
By conditional I wasn’t aware of the comment about nixpkgs/pkgs/stdenv/generic/make-derivation.nix Lines 320 to 322 in 145aee8 I’m not sure I understand it either. Is removal referring to nixpkgs/pkgs/stdenv/generic/make-derivation.nix Lines 271 to 273 in 145aee8 At any rate, if |
There's a few attrs where a
Removal of the
It can't be seen during eval so it would have to be a lint. |
For the short term, is it worth documenting this somewhere? Perhaps in the Nixpkgs reference manual? If not, then I think this is good to merge! |
finalAttrs.doCheckdoes not include the conditionals inmkDerivationwhich disabledoCheckon!canExecutecross.This is better than changing all
finalAttrs.doChecktofinalAttrs.finalPackage.doCheckbecause it works without conditionaloutputsand it addresses the comment inmkDerivationabout not usingdoCheck = trueThings done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.