mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 17:46:00 +01:00
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
|
@ -32,9 +32,13 @@
|
||||||
src = inputs.wlroots;
|
src = inputs.wlroots;
|
||||||
});
|
});
|
||||||
hyprland = prev.callPackage ./nix/default.nix {
|
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;
|
wlroots = wlroots-hyprland;
|
||||||
};
|
};
|
||||||
|
hyprland-debug = hyprland.override {debug = true;};
|
||||||
|
waybar-hyprland = prev.waybar.overrideAttrs (oldAttrs: {
|
||||||
|
mesonFlags = oldAttrs.mesonFlags ++ ["-Dexperimental=true"];
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = genSystems (system:
|
packages = genSystems (system:
|
||||||
|
|
|
@ -20,9 +20,10 @@
|
||||||
xwayland,
|
xwayland,
|
||||||
enableXWayland ? true,
|
enableXWayland ? true,
|
||||||
version ? "git",
|
version ? "git",
|
||||||
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "hyprland";
|
pname = "hyprland" + lib.optionalString debug "-debug";
|
||||||
inherit version;
|
inherit version;
|
||||||
src = ../.;
|
src = ../.;
|
||||||
|
|
||||||
|
@ -48,7 +49,10 @@ stdenv.mkDerivation {
|
||||||
]
|
]
|
||||||
++ lib.optional enableXWayland xwayland;
|
++ lib.optional enableXWayland xwayland;
|
||||||
|
|
||||||
mesonBuildType = "release";
|
mesonBuildType =
|
||||||
|
if debug
|
||||||
|
then "debug"
|
||||||
|
else "release";
|
||||||
|
|
||||||
mesonFlags = lib.optional (!enableXWayland) "-DNO_XWAYLAND=true";
|
mesonFlags = lib.optional (!enableXWayland) "-DNO_XWAYLAND=true";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue