prismlauncher: add qtwayland to buildInputs

This commit is contained in:
Mustafa Çalışkan 2022-11-19 09:34:38 +03:00
parent a04a4bbbeb
commit 679b5bde4e
No known key found for this signature in database
GPG Key ID: 53E17A18229A0391

View File

@ -11,6 +11,7 @@
, libpulseaudio
, qtbase
, qtsvg
, qtwayland
, libGL
, quazip
, glfw
@ -20,8 +21,8 @@
, ghc_filesystem
, msaClientID ? ""
, jdks ? [ jdk jdk8 ]
,
}:
let
libnbtplusplus = fetchFromGitHub {
owner = "PrismLauncher";
@ -30,6 +31,7 @@ let
sha256 = "sha256-TvVOjkUobYJD9itQYueELJX3wmecvEdCbJ0FinW2mL4=";
};
in
stdenv.mkDerivation rec {
pname = "prismlauncher";
version = "5.2";
@ -41,8 +43,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-sKAhcbDoRbWf/DuwcBmDjb+VSMM0K2C33gu1K9AlPoQ=";
};
nativeBuildInputs = [ extra-cmake-modules ghc_filesystem cmake file jdk wrapQtAppsHook ];
buildInputs = [ qtbase qtsvg zlib quazip tomlplusplus ];
nativeBuildInputs = [ extra-cmake-modules cmake file jdk wrapQtAppsHook ];
buildInputs = [
qtbase
qtsvg
zlib
quazip
ghc_filesystem
tomlplusplus
] ++ lib.optional (lib.versionAtLeast qtbase.version "6") qtwayland;
cmakeFlags = lib.optionals (msaClientID != "") [ "-DLauncher_MSA_CLIENT_ID=${msaClientID}" ]
++ lib.optionals (lib.versionAtLeast qtbase.version "6") [ "-DLauncher_QT_VERSION_MAJOR=6" ];