From 4a032b19fc663d96e4a2e499cdd720e6bd87012b Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Mon, 24 Jul 2023 21:26:05 -0700 Subject: boost: move isMips64n32 from meta.broken to meta.badPlatforms Presence in meta.badPlatforms can be tested with lib.meta.availableOn, but meta.broken cannot. I use this to compile as much of my routers' userspace as possible for Mips64n32, and to automatically detect the few binaries (mostly those which use boost) cannot and build those for Mips64n64. --- pkgs/development/libraries/boost/generic.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index cad0f3aaed6..27419a049a7 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -141,13 +141,11 @@ stdenv.mkDerivation { description = "Collection of C++ libraries"; license = licenses.boost; platforms = platforms.unix ++ platforms.windows; + # boost-context lacks support for the N32 ABI on mips64. The build + # will succeed, but packages depending on boost-context will fail with + # a very cryptic error message. + badPlatforms = [ lib.systems.inspect.patterns.isMips64n32 ]; maintainers = with maintainers; [ hjones2199 ]; - - broken = - # boost-context lacks support for the N32 ABI on mips64. The build - # will succeed, but packages depending on boost-context will fail with - # a very cryptic error message. - stdenv.hostPlatform.isMips64n32; }; passthru = { -- cgit 1.4.1