prismlauncher: improve assertions

controllerSupport and textToSpeechSupport have no effect outside of
linux and have no reason to be set; both of these work out of the box on
darwin without any intervention from us
This commit is contained in:
seth 2024-06-22 18:51:20 -04:00
parent ea1cf5da52
commit 3b2969b1a5
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86
2 changed files with 10 additions and 2 deletions

View File

@ -31,7 +31,7 @@ in
assert lib.assertMsg (
gamemodeSupport -> stdenv.isLinux
) "gamemodeSupport is only available on Linux!";
) "gamemodeSupport is only available on Linux.";
stdenv.mkDerivation (finalAttrs: {
pname = "prismlauncher-unwrapped";

View File

@ -45,9 +45,17 @@
withWaylandGLFW ? false,
}:
assert lib.assertMsg (
controllerSupport -> stdenv.isLinux
) "controllerSupport only has an effect on Linux.";
assert lib.assertMsg (
textToSpeechSupport -> stdenv.isLinux
) "textToSpeechSupport only has an effect on Linux.";
assert lib.assertMsg (
withWaylandGLFW -> stdenv.isLinux
) "withWaylandGLFW is only available on Linux!";
) "withWaylandGLFW is only available on Linux.";
let
prismlauncher' = prismlauncher-unwrapped.override { inherit msaClientID gamemodeSupport; };