Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
108 lines
2.1 KiB
Nix
108 lines
2.1 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
makeBinaryWrapper,
|
|
meson,
|
|
ninja,
|
|
scdoc,
|
|
pkg-config,
|
|
nix-update-script,
|
|
bash,
|
|
dmenu,
|
|
libnotify,
|
|
newt,
|
|
python3Packages,
|
|
systemd,
|
|
util-linux,
|
|
fumonSupport ? true,
|
|
uuctlSupport ? true,
|
|
uwsmAppSupport ? true,
|
|
}:
|
|
let
|
|
python = python3Packages.python.withPackages (ps: [
|
|
ps.pydbus
|
|
ps.dbus-python
|
|
ps.pyxdg
|
|
]);
|
|
in
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "uwsm";
|
|
version = "0.23.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Vladimir-csp";
|
|
repo = "uwsm";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-UP9Ztps5oWl0bdXhSlE4SCxHFprUf74DWygJy6GvO4k=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeBinaryWrapper
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
scdoc
|
|
];
|
|
|
|
buildInputs = [
|
|
util-linux # waitpid
|
|
newt # whiptail
|
|
libnotify # notify
|
|
bash # sh
|
|
systemd
|
|
python
|
|
]
|
|
++ lib.optionals uuctlSupport [ dmenu ];
|
|
|
|
mesonFlags = [
|
|
"--prefix=${placeholder "out"}"
|
|
(lib.mapAttrsToList lib.mesonEnable {
|
|
"uwsm-app" = uwsmAppSupport;
|
|
"fumon" = fumonSupport;
|
|
"uuctl" = uuctlSupport;
|
|
"man-pages" = true;
|
|
})
|
|
(lib.mesonOption "python-bin" python.interpreter)
|
|
];
|
|
|
|
postInstall =
|
|
let
|
|
wrapperArgs = "--suffix PATH : ${lib.makeBinPath finalAttrs.buildInputs}";
|
|
in
|
|
''
|
|
wrapProgram $out/bin/uwsm ${wrapperArgs}
|
|
''
|
|
+ lib.optionalString uuctlSupport ''
|
|
wrapProgram $out/bin/uuctl ${wrapperArgs}
|
|
''
|
|
+ lib.optionalString uwsmAppSupport ''
|
|
wrapProgram $out/bin/uwsm-app ${wrapperArgs}
|
|
''
|
|
+ lib.optionalString fumonSupport ''
|
|
wrapProgram $out/bin/fumon ${wrapperArgs}
|
|
'';
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
};
|
|
|
|
meta = {
|
|
description = "Universal wayland session manager";
|
|
homepage = "https://github.com/Vladimir-csp/uwsm";
|
|
changelog = "https://github.com/Vladimir-csp/uwsm/releases/tag/v${finalAttrs.version}";
|
|
mainProgram = "uwsm";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
johnrtitor
|
|
kai-tub
|
|
];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|