Commit 4a032b19 authored by Adam Joseph's avatar Adam Joseph
Browse files

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.
parent 8c9caf33
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -141,13 +141,11 @@ stdenv.mkDerivation {
    description = "Collection of C++ libraries";
    license = licenses.boost;
    platforms = platforms.unix ++ platforms.windows;
    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;
    badPlatforms = [ lib.systems.inspect.patterns.isMips64n32 ];
    maintainers = with maintainers; [ hjones2199 ];
  };

  passthru = {