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.
This commit is contained in:
Wolfgang Walther
2025-07-21 18:55:56 +02:00
parent 5ecd39518b
commit ec9a3de2c1
+1 -2
View File
@@ -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;
};
}