valgrind: make meta.platforms more accurate

Valgrind has to do lots of architecture- and OS-specific stuff, so it
only works on a defined set of platforms.  So rather than marking
platforms as bad one by one, let's set meta.platforms to the actual
set of platforms supported by Valgrind, as listed in its configure
script.
This commit is contained in:
Alyssa Ross 2023-01-19 16:40:53 +00:00
parent 6d165a9474
commit 9c04fcb25f
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -119,13 +119,9 @@ stdenv.mkDerivation rec {
license = lib.licenses.gpl2Plus;
maintainers = [ lib.maintainers.eelco ];
platforms = lib.platforms.unix;
badPlatforms = [
"armv5tel-linux" "armv6l-linux" "armv6m-linux"
"sparc-linux" "sparc64-linux"
"riscv32-linux" "riscv64-linux"
"alpha-linux"
];
platforms = with lib.platforms; lib.intersectLists
(x86 ++ power ++ s390x ++ armv7 ++ aarch64 ++ mips)
(darwin ++ freebsd ++ illumos ++ linux);
broken = stdenv.isDarwin || stdenv.hostPlatform.isStatic; # https://hydra.nixos.org/build/128521440/nixlog/2
};
}