20 uwsmAppSupport ? true,
23 python = python3Packages.python.withPackages (ps: [
29 stdenv.mkDerivation (finalAttrs: {
33 src = fetchFromGitHub {
34 owner = "Vladimir-csp";
36 rev = "refs/tags/v${finalAttrs.version}";
37 hash = "sha256-RHxA0X3cqHtp4NZl7qlqBYkqOJay8IPoaj12bdouVkc=";
48 propagatedBuildInputs = [
55 ] ++ (lib.optionals uuctlSupport [ dmenu ]);
58 "--prefix=${placeholder "out"}"
59 (lib.mapAttrsToList lib.mesonEnable {
60 "uwsm-app" = uwsmAppSupport;
61 "fumon" = fumonSupport;
62 "uuctl" = uuctlSupport;
65 (lib.mesonOption "python-bin" python.interpreter)
71 --suffix PATH : "${lib.makeBinPath finalAttrs.propagatedBuildInputs}"
75 wrapProgram $out/bin/uwsm ${wrapperArgs}
76 ${lib.optionalString uuctlSupport ''
77 wrapProgram $out/bin/uuctl ${wrapperArgs}
79 ${lib.optionalString uwsmAppSupport ''
80 wrapProgram $out/bin/uwsm-app ${wrapperArgs}
82 ${lib.optionalString fumonSupport ''
83 wrapProgram $out/bin/fumon ${wrapperArgs}
93 updateScript = nix-update-script { };
97 description = "Universal wayland session manager";
98 homepage = "https://github.com/Vladimir-csp/uwsm";
99 changelog = "https://github.com/Vladimir-csp/uwsm/releases/tag/v${finalAttrs.version}";
100 mainProgram = "uwsm";
101 license = lib.licenses.mit;
102 maintainers = with lib.maintainers; [
106 platforms = lib.platforms.linux;