From ec9a3de2c1d2398805e2d5edda4ab5ddf3a9d4c2 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 21 Jul 2025 18:55:40 +0200 Subject: [PATCH] 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. --- pkgs/by-name/tr/tracy/package.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/by-name/tr/tracy/package.nix b/pkgs/by-name/tr/tracy/package.nix index 61cae96e1104..53fa8b8ae269 100644 --- a/pkgs/by-name/tr/tracy/package.nix +++ b/pkgs/by-name/tr/tracy/package.nix @@ -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; }; }