about summary refs log tree commit diff
path: root/pkgs/test/default.nix
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-09-07 20:59:32 +0300
committerArtturin <Artturin@artturin.com>2023-09-07 22:36:16 +0300
commite0898be1c52d62d89071f95fffc39ee468201fbe (patch)
tree1cc3b91980fc6c277684b9d7d6f1aa4f21330f06 /pkgs/test/default.nix
parent686516e0bce756185b9709e51be1fd810c40565a (diff)
tests.cc-wrapper: filter unavailable gcc
Diffstat (limited to 'pkgs/test/default.nix')
-rw-r--r--pkgs/test/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/test/default.nix b/pkgs/test/default.nix
index 8bc9a7844ff5e..41be8cce9c96e 100644
--- a/pkgs/test/default.nix
+++ b/pkgs/test/default.nix
@@ -27,7 +27,11 @@ with pkgs;
         (stdenv.buildPlatform.isLinux && stdenv.buildPlatform.isx86_64) &&
         (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86_64)
       )) [
+        # Is a throw
         (filter (n: !lib.hasSuffix "MultiStdenv" n))
+      ] ++ [
+        # Has to be after the previous filter
+        (filter (n: lib.meta.availableOn stdenv.hostPlatform pkgs.${n}.cc ))
       ]);
     in lib.genAttrs pkgSets (name: callPackage ./cc-wrapper { stdenv = pkgs.${name}; });
   in recurseIntoAttrs {