Unverified Commit 474afa8a authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files

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.
parent 5ecd3951
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;
  };
}