nix: add debug package and waybar with -Dexperimental flag
This commit is contained in:
parent
bbc3b5e19b
commit
cbf3595e96
2 changed files with 11 additions and 3 deletions
|
|
@ -20,9 +20,10 @@
|
|||
xwayland,
|
||||
enableXWayland ? true,
|
||||
version ? "git",
|
||||
debug ? false,
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "hyprland";
|
||||
pname = "hyprland" + lib.optionalString debug "-debug";
|
||||
inherit version;
|
||||
src = ../.;
|
||||
|
||||
|
|
@ -48,7 +49,10 @@ stdenv.mkDerivation {
|
|||
]
|
||||
++ lib.optional enableXWayland xwayland;
|
||||
|
||||
mesonBuildType = "release";
|
||||
mesonBuildType =
|
||||
if debug
|
||||
then "debug"
|
||||
else "release";
|
||||
|
||||
mesonFlags = lib.optional (!enableXWayland) "-DNO_XWAYLAND=true";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue