tests.cc-wrapper: filter unavailable gcc

This commit is contained in:
Artturin
2023-09-07 20:59:32 +03:00
parent 686516e0bc
commit e0898be1c5

View File

@@ -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 {