build: add opt-in installation of QML lib

Override the package with `withQMLLib = true;` to enable lib
installation, alternatively add `-DINSTALL_QML_LIB=ON` to your cmake
build command.

Co-authored-by: a-usr <[email protected]>
This commit is contained in:
Nydragonanda-usr committed 2024-08-25 22:59:41 +02:00
1 parent f95e7dbaf6
commit b40d4147e0
3 files changed
+19 -1

No files matched your search

+3 -1
View File
@@ -37,6 +37,7 @@
withPipewire ? true,
withPam ? true,
withHyprland ? true,
withQMLLib ? true,
}: buildStdenv.mkDerivation {
pname = "quickshell${lib.optionalString debug "-debug"}";
version = "0.1.0";
@@ -75,7 +76,8 @@
++ lib.optional (!withWayland) "-DWAYLAND=OFF"
++ lib.optional (!withPipewire) "-DSERVICE_PIPEWIRE=OFF"
++ lib.optional (!withPam) "-DSERVICE_PAM=OFF"
++ lib.optional (!withHyprland) "-DHYPRLAND=OFF";
++ lib.optional (!withHyprland) "-DHYPRLAND=OFF"
++ lib.optional (!withQMLLib) "-DINSTALL_QML_LIB=OFF";
buildPhase = "ninjaBuildPhase";
enableParallelBuilding = true;