Skip to content

Commit

Permalink
tests.cc-wrapper: filter out *MultiStdenv when not on and not buildin…
Browse files Browse the repository at this point in the history
…g for linux and x86_64

they're only supported on x86_64-linux
  • Loading branch information
Artturin committed Sep 7, 2023
1 parent ae26b91 commit e7632ac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkgs/test/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,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 { };
Expand Down

0 comments on commit e7632ac

Please sign in to comment.