diff options
author | rewine <luhongxu@deepin.org> | 2024-03-23 22:07:40 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2024-03-27 22:51:29 +0800 |
commit | d3753949d8a99fa7cfbc1c4d8304623acd87d55a (patch) | |
tree | 0809e8c441f1097559fedecbc1f161e610c41913 /pkgs/applications/window-managers/wayfire/focus-request.nix | |
parent | cec9c1f9302c4dcd187d895d2f5ed37b525e6e0c (diff) |
wayfirePlugins.focus-request: init at 0.8.0.2
Diffstat (limited to 'pkgs/applications/window-managers/wayfire/focus-request.nix')
-rw-r--r-- | pkgs/applications/window-managers/wayfire/focus-request.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/wayfire/focus-request.nix b/pkgs/applications/window-managers/wayfire/focus-request.nix new file mode 100644 index 000000000000..1e535e8ba751 --- /dev/null +++ b/pkgs/applications/window-managers/wayfire/focus-request.nix @@ -0,0 +1,58 @@ +{ stdenv +, lib +, fetchFromGitLab +, meson +, ninja +, pkg-config +, wayfire +, wf-config +, wayland +, pango +, libinput +, libxkbcommon +, librsvg +, libGL +, xcbutilwm +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "focus-request"; + version = "0.8.0.2"; + + src = fetchFromGitLab { + owner = "wayfireplugins"; + repo = "focus-request"; + rev = "v${finalAttrs.version}"; + hash = "sha256-v0kGT+KrtfFJ/hp1Dr8izKVj6UHhuW6udHFjWt1y9TY="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = [ + wayfire + wf-config + wayland + pango + libinput + libxkbcommon + librsvg + libGL + xcbutilwm + ]; + + env = { + PKG_CONFIG_WAYFIRE_METADATADIR = "${placeholder "out"}/share/wayfire/metadata"; + }; + + meta = { + homepage = "https://gitlab.com/wayfireplugins/focus-request"; + description = "The wayfire plugin provides a mechanism to grant focus to views that make a focus self-request"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ rewine ]; + inherit (wayfire.meta) platforms; + }; +}) |