Disable cross builds on platforms other than x86_64-linux

Needed because evaluation was broken on x86_64-darwin.
This commit is contained in:
Eelco Dolstra 2022-06-07 13:56:57 +02:00
parent dbf0d3a150
commit 5a9d83aa59
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -610,7 +610,9 @@
ln -s ${image} $image
echo "file binary-dist $image" >> $out/nix-support/hydra-build-products
'';
} // builtins.listToAttrs (map (crossSystem: {
}
// builtins.listToAttrs (map (crossSystem: {
name = "nix-${crossSystem}";
value = let
nixpkgsCross = import nixpkgs {
@ -649,7 +651,9 @@
doInstallCheck = true;
installCheckFlags = "sysconfdir=$(out)/etc";
};
}) crossSystems)) // (builtins.listToAttrs (map (stdenvName:
}) (if system == "x86_64-linux" then crossSystems else [])))
// (builtins.listToAttrs (map (stdenvName:
nixpkgsFor.${system}.lib.nameValuePair
"nix-${stdenvName}"
nixpkgsFor.${system}."${stdenvName}Packages".nix