summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Fufezan <fufexan@protonmail.com>2022-06-29 14:46:41 +0300
committerMihai Fufezan <fufexan@protonmail.com>2022-06-29 20:50:27 +0300
commitcbf3595e96e8d80ff3badc5172a115532e68ba94 (patch)
tree84ceec255528de04bb07663c738d17c7a2948713
parentbbc3b5e19bf52a860a687bc98b7daf50f19261d4 (diff)
nix: add debug package and waybar with -Dexperimental flag
-rw-r--r--flake.nix6
-rw-r--r--nix/default.nix8
2 files changed, 11 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index aff05d7f..b1f621fc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -32,9 +32,13 @@
src = inputs.wlroots;
});
hyprland = prev.callPackage ./nix/default.nix {
- version = "0.6.0beta" + "+date=" + (mkDate (self.lastModifiedDate or "19700101"));
+ version = "0.6.2beta" + "+date=" + (mkDate (self.lastModifiedDate or "19700101"));
wlroots = wlroots-hyprland;
};
+ hyprland-debug = hyprland.override {debug = true;};
+ waybar-hyprland = prev.waybar.overrideAttrs (oldAttrs: {
+ mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
+ });
};
packages = genSystems (system:
diff --git a/nix/default.nix b/nix/default.nix
index 18570f12..495345fd 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -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";