diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-24 12:27:28 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-24 12:27:28 +1000 |
| commit | 1466adc629b00aa1484d146b4416c50c8b281570 (patch) | |
| tree | 51b3802772efdec382318409839d549a8316541c /nix | |
| parent | plugin/fsm: fix crash (diff) | |
| download | caelestia-shell-1466adc629b00aa1484d146b4416c50c8b281570.tar.gz caelestia-shell-1466adc629b00aa1484d146b4416c50c8b281570.tar.bz2 caelestia-shell-1466adc629b00aa1484d146b4416c50c8b281570.zip | |
nix: consistent build type
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/default.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/nix/default.nix b/nix/default.nix index c87d616..bd246a6 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -56,6 +56,11 @@ fontDirectories = [material-symbols rubik nerd-fonts.caskaydia-cove]; }; + cmakeBuildType = + if debug + then "Debug" + else "RelWithDebInfo"; + cmakeVersionFlags = [ (lib.cmakeFeature "VERSION" version) (lib.cmakeFeature "GIT_REVISION" rev) @@ -63,6 +68,7 @@ ]; extras = stdenv.mkDerivation { + inherit cmakeBuildType; name = "caelestia-extras${lib.optionalString debug "-debug"}"; src = lib.fileset.toSource { root = ./..; @@ -80,6 +86,7 @@ }; plugin = stdenv.mkDerivation { + inherit cmakeBuildType; name = "caelestia-qml-plugin${lib.optionalString debug "-debug"}"; src = lib.fileset.toSource { root = ./..; @@ -99,7 +106,7 @@ }; in stdenv.mkDerivation { - inherit version; + inherit version cmakeBuildType; pname = "caelestia-shell${lib.optionalString debug "-debug"}"; src = ./..; @@ -107,10 +114,6 @@ in buildInputs = [quickshell extras plugin xkeyboard-config qt6.qtbase]; propagatedBuildInputs = runtimeDeps; - cmakeBuildType = - if debug - then "Debug" - else "RelWithDebInfo"; cmakeFlags = [ (lib.cmakeFeature "ENABLE_MODULES" "shell") |