aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix
diff options
context:
space:
mode:
authorMihai Fufezan <[email protected]>2022-07-27 14:57:27 +0300
committerMihai Fufezan <[email protected]>2022-07-27 14:57:59 +0300
commitb2627c05c4e92495008628f7ec47c4d0ccbe9354 (patch)
treedf446727b18b313b0e6e983a52d75e22e12e6632 /nix
parent427bc35b6b991da4049c7ccd30b4542410227170 (diff)
downloadHyprland-b2627c05c4e92495008628f7ec47c4d0ccbe9354.tar.gz
Hyprland-b2627c05c4e92495008628f7ec47c4d0ccbe9354.zip
flake & meson: 0.7.0 -> 0.8.1
nix: add legacyRenderer option
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/nix/default.nix b/nix/default.nix
index 8ad64f2f..b729fd98 100644
--- a/nix/default.nix
+++ b/nix/default.nix
@@ -18,9 +18,10 @@
wlroots,
xcbutilwm,
xwayland,
+ debug ? false,
enableXWayland ? true,
+ legacyRenderer ? false,
version ? "git",
- debug ? false,
}:
stdenv.mkDerivation {
pname = "hyprland" + lib.optionalString debug "-debug";
@@ -54,7 +55,10 @@ stdenv.mkDerivation {
then "debug"
else "release";
- mesonFlags = lib.optional (!enableXWayland) "-DNO_XWAYLAND=true";
+ mesonFlags = builtins.concatLists [
+ (lib.optional (!enableXWayland) "-DNO_XWAYLAND=true")
+ (lib.optional (legacyRenderer) "-DLEGACY_RENDERER:STRING=true")
+ ];
patches = [
# make meson use the provided wlroots instead of the git submodule