1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00

Merge pull request #33670 from obsidiansystems/cross-check

stdenv: Fix doCheck and doInstallCheck logic
This commit is contained in:
John Ericson 2018-01-09 16:37:11 -05:00 committed by GitHub
commit c836910e0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -191,10 +191,10 @@ rec {
outputs = outputs'; outputs = outputs';
} // lib.optionalAttrs (attrs ? doCheck) { } // lib.optionalAttrs (attrs ? doCheck) {
# TODO(@Ericson2314): Make unconditional / resolve #33599 # TODO(@Ericson2314): Make unconditional / resolve #33599
doCheck = doCheck && (stdenv.hostPlatform == stdenv.targetPlatform); doCheck = doCheck && (stdenv.hostPlatform == stdenv.buildPlatform);
} // lib.optionalAttrs (attrs ? doInstallCheck) { } // lib.optionalAttrs (attrs ? doInstallCheck) {
# TODO(@Ericson2314): Make unconditional / resolve #33599 # TODO(@Ericson2314): Make unconditional / resolve #33599
doInstallCheck = doInstallCheck && (stdenv.hostPlatform == stdenv.targetPlatform); doInstallCheck = doInstallCheck && (stdenv.hostPlatform == stdenv.buildPlatform);
}); });
# The meta attribute is passed in the resulting attribute set, # The meta attribute is passed in the resulting attribute set,