hyprland: add withUWSM (#576493)

This commit is contained in:
Masum Reza
2026-10-22 03:37:52 +00:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ in
p:
wayland-lib.genFinalPackage p {
enableXWayland = cfg.xwayland.enable;
withUWSM = cfg.withUWSM;
};
};

View File

@@ -53,8 +53,10 @@
debug ? false,
enableXWayland ? true,
withSystemd ? lib.meta.availableOn gcc16Stdenv.hostPlatform systemdLibs,
withUWSM ? withSystemd,
wrapRuntimeDeps ? true,
}:
assert withUWSM -> withSystemd;
let
inherit (builtins)
foldl'
@@ -111,6 +113,8 @@ customStdenv.mkDerivation (finalAttrs: {
--replace-fail "@PREFIX@/" ""
substituteInPlace example/hyprland.desktop.in \
--replace-fail "@PREFIX@/" ""
''
+ lib.optionalString withUWSM ''
substituteInPlace systemd/hyprland-uwsm.desktop \
--replace-fail "Exec=uwsm " "Exec=${lib.getExe uwsm} " \
--replace-fail "TryExec=uwsm" "TryExec=${lib.getExe uwsm}"
@@ -204,7 +208,7 @@ customStdenv.mkDerivation (finalAttrs: {
"NO_XWAYLAND" = !enableXWayland;
"NO_SYSTEMD" = !withSystemd;
"CMAKE_DISABLE_PRECOMPILE_HEADERS" = true;
"NO_UWSM" = !withSystemd;
"NO_UWSM" = !withUWSM;
"TRACY_ENABLE" = false;
};
@@ -223,7 +227,7 @@ customStdenv.mkDerivation (finalAttrs: {
'';
passthru = {
providedSessions = [ "hyprland" ] ++ optionals withSystemd [ "hyprland-uwsm" ];
providedSessions = [ "hyprland" ] ++ optionals withUWSM [ "hyprland-uwsm" ];
updateScript = ./update.sh;
};