prismlauncher: use lib.cmakeFeature

This commit is contained in:
seth 2024-06-23 14:46:14 -04:00
parent 3b2969b1a5
commit 94ad1c37a8
No known key found for this signature in database
GPG Key ID: D31BD0D494BBEE86

View File

@ -74,18 +74,20 @@ stdenv.mkDerivation (finalAttrs: {
cmakeFlags =
[
# downstream branding
"-DLauncher_BUILD_PLATFORM=nixpkgs"
(lib.cmakeFeature "Launcher_BUILD_PLATFORM" "nixpkgs")
]
++ lib.optionals (msaClientID != null) [
(lib.cmakeFeature "Launcher_MSA_CLIENT_ID" (toString msaClientID))
]
++ lib.optionals (msaClientID != null) [ "-DLauncher_MSA_CLIENT_ID=${msaClientID}" ]
++ lib.optionals (lib.versionOlder kdePackages.qtbase.version "6") [
"-DLauncher_QT_VERSION_MAJOR=5"
(lib.cmakeFeature "Launcher_QT_VERSION_MAJOR" "5")
]
++ lib.optionals stdenv.isDarwin [
# we wrap our binary manually
"-DINSTALL_BUNDLE=nodeps"
(lib.cmakeFeature "INSTALL_BUNDLE" "nodeps")
# disable built-in updater
"-DMACOSX_SPARKLE_UPDATE_FEED_URL=''"
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}/Applications/"
(lib.cmakeFeature "MACOSX_SPARKLE_UPDATE_FEED_URL" "''")
(lib.cmakeFeature "CMAKE_INSTALL_PREFIX" "${placeholder "out"}/Applications/")
];
dontWrapQtApps = true;