diff options
author | Artturin <Artturin@artturin.com> | 2023-09-07 20:30:03 +0300 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-09-07 22:36:16 +0300 |
commit | 686516e0bce756185b9709e51be1fd810c40565a (patch) | |
tree | 2a4701a2fa0979e7b7396ca3a0d83f6960f3b2bc | |
parent | 535447e289be901fb309952e7bfc1c913083241d (diff) |
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
-rw-r--r-- | pkgs/test/default.nix | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/test/default.nix b/pkgs/test/default.nix index 77531d4e6a38..8bc9a7844ff5 100644 --- a/pkgs/test/default.nix +++ b/pkgs/test/default.nix @@ -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 { }; |