tests.cc-wrapper: filter out *MultiStdenv when not on and not building for linux and x86_64

they're only supported on x86_64-linux
This commit is contained in:
Artturin 2023-09-07 20:30:03 +03:00
parent 535447e289
commit 686516e0bc

View File

@ -19,11 +19,16 @@ with pkgs;
in
recurseIntoAttrs tests;
gccTests = let
pkgSets = lib.pipe (attrNames pkgs) [
pkgSets = lib.pipe (attrNames pkgs) ([
(filter (lib.hasPrefix "gcc"))
(filter (lib.hasSuffix "Stdenv"))
(filter (n: n != "gccCrossLibcStdenv"))
];
] ++ lib.optionals (!(
(stdenv.buildPlatform.isLinux && stdenv.buildPlatform.isx86_64) &&
(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64)
)) [
(filter (n: !lib.hasSuffix "MultiStdenv" n))
]);
in lib.genAttrs pkgSets (name: callPackage ./cc-wrapper { stdenv = pkgs.${name}; });
in recurseIntoAttrs {
default = callPackage ./cc-wrapper { };