Unverified Commit ec9a3de2 authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

tracy-wayland: drop darwin as supported platform

Wayland support is only possible on Linux. Instead of the assert, which
can't be caught by CI properly, do this via the list of supported
platforms in meta.platforms. This works much better for CI.

I did not touch the `withGtkFileSelector` assert, because it doesn't
trigger in CI - it only does when overriding this argument manually.
parent 5ecd3951
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -25,7 +25,6 @@
}:

assert withGtkFileSelector -> stdenv.hostPlatform.isLinux;
assert withWayland -> stdenv.hostPlatform.isLinux;

stdenv.mkDerivation rec {
  pname = if withWayland then "tracy-wayland" else "tracy-glfw";
@@ -130,6 +129,6 @@ stdenv.mkDerivation rec {
      mpickering
      nagisa
    ];
    platforms = platforms.linux ++ platforms.darwin;
    platforms = platforms.linux ++ lib.optionals (!withWayland) platforms.darwin;
  };
}