19 uwsmAppSupport ? true,
22 python = python3Packages.python.withPackages (ps: [
28 stdenv.mkDerivation (finalAttrs: {
32 src = fetchFromGitHub {
33 owner = "Vladimir-csp";
35 rev = "refs/tags/v${finalAttrs.version}";
36 hash = "sha256-BtzW0jyYAVGjSBlocgkGHgY3JQUpWizDaSa2YBIX2Bs=";
47 propagatedBuildInputs = [
53 ] ++ (lib.optionals uuctlSupport [ dmenu ]);
56 "--prefix=${placeholder "out"}"
57 (lib.mapAttrsToList lib.mesonEnable {
58 "uwsm-app" = uwsmAppSupport;
59 "fumon" = fumonSupport;
60 "uuctl" = uuctlSupport;
63 (lib.mesonOption "python-bin" python.interpreter)
69 --prefix PATH : "${lib.makeBinPath finalAttrs.propagatedBuildInputs}"
73 wrapProgram $out/bin/uwsm ${wrapperArgs}
74 ${lib.optionalString uuctlSupport ''
75 wrapProgram $out/bin/uuctl ${wrapperArgs}
77 ${lib.optionalString uwsmAppSupport ''
78 wrapProgram $out/bin/uwsm-app ${wrapperArgs}
80 ${lib.optionalString fumonSupport ''
81 wrapProgram $out/bin/fumon ${wrapperArgs}
91 updateScript = nix-update-script { };
95 description = "Universal wayland session manager";
96 homepage = "https://github.com/Vladimir-csp/uwsm";
97 changelog = "https://github.com/Vladimir-csp/uwsm/releases/tag/v${finalAttrs.version}";
99 license = lib.licenses.mit;
100 maintainers = with lib.maintainers; [
104 platforms = lib.platforms.linux;