os/overlays/sway.nix

29 lines
789 B
Nix

inputs: final: prev:
let
unstable = import inputs.unstable {
system = prev.system;
};
in
{
sway-unwrapped =
(unstable.sway-unwrapped.override { wlroots = unstable.wlroots_0_18; }).overrideAttrs
(
finalAttrs: prevAttrs: {
version = "1.10";
src = prevAttrs.src.override {
hash = "sha256-PzeU/niUdqI6sf2TCG19G2vNgAZJE5JCyoTwtO9uFTk=";
};
mesonFlags =
let
inherit (final.lib.strings) mesonEnable mesonOption;
sd-bus-provider = if finalAttrs.systemdSupport then "libsystemd" else "basu";
in
[
(mesonOption "sd-bus-provider" sd-bus-provider)
(mesonEnable "tray" finalAttrs.trayEnabled)
];
}
);
}