From 474afa8ac1825cfa623c76adb01f3ff0464b8ae8 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 21 Jul 2025 19:07:56 +0200 Subject: [PATCH] zenith-nvidia: move assert to meta.platforms check Using asserts for these kinds of checks breaks CI and requires ugly workarounds to catch them. Errors reported via `meta.platforms` can be caught and ignored nicely. --- pkgs/by-name/ze/zenith/package.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/by-name/ze/zenith/package.nix b/pkgs/by-name/ze/zenith/package.nix index a0d8928478b0..fe2e34fbe294 100644 --- a/pkgs/by-name/ze/zenith/package.nix +++ b/pkgs/by-name/ze/zenith/package.nix @@ -7,8 +7,6 @@ makeWrapper, }: -assert nvidiaSupport -> stdenv.hostPlatform.isLinux; - rustPlatform.buildRustPackage rec { pname = "zenith"; version = "0.14.1"; @@ -45,6 +43,6 @@ rustPlatform.buildRustPackage rec { homepage = "https://github.com/bvaisvil/zenith"; license = licenses.mit; maintainers = with maintainers; [ wegank ]; - platforms = platforms.unix; + platforms = if nvidiaSupport then platforms.linux else platforms.unix; }; }