diff options
author | rewine <luhongxu@deepin.org> | 2024-03-23 23:06:46 +0800 |
---|---|---|
committer | Bobby Rong <rjl931189261@126.com> | 2024-03-27 22:51:29 +0800 |
commit | ab2c5d034e1cae7900ebbd2d024c0b910b840db8 (patch) | |
tree | bf0dfc210a36bd4a8551c4c04f30d4d35e536118 /pkgs/applications/window-managers/wayfire/wwp-switcher.nix | |
parent | d3753949d8a99fa7cfbc1c4d8304623acd87d55a (diff) |
wayfirePlugins.wwp-switcher: init at unstable-2023-09-09
Diffstat (limited to 'pkgs/applications/window-managers/wayfire/wwp-switcher.nix')
-rw-r--r-- | pkgs/applications/window-managers/wayfire/wwp-switcher.nix | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/wayfire/wwp-switcher.nix b/pkgs/applications/window-managers/wayfire/wwp-switcher.nix new file mode 100644 index 0000000000000..5a2f71129e281 --- /dev/null +++ b/pkgs/applications/window-managers/wayfire/wwp-switcher.nix @@ -0,0 +1,65 @@ +{ stdenv +, lib +, fetchFromGitHub +, unstableGitUpdater +, meson +, ninja +, pkg-config +, wayfire +, wayland +, wf-config +, cairo +, pango +, libxkbcommon +, libGL +, libinput +, gtk3 +, glibmm +, xcbutilwm +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "wwp-switcher"; + version = "unstable-2023-09-09"; + + src = fetchFromGitHub { + owner = "wb9688"; + repo = "wwp-switcher"; + rev = "04711a0db133a899f507a86e81897296b793b4f3"; + hash = "sha256-qMyEhSZJNxAoaELKI2h1v59QJnKJzFa76Q4/WtZqpIU"; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + ]; + + buildInputs = [ + wayfire + wayland + wf-config + cairo + pango + libxkbcommon + libGL + libinput + gtk3 + glibmm + xcbutilwm + ]; + + env = { + PKG_CONFIG_WAYFIRE_METADATADIR = "${placeholder "out"}/share/wayfire/metadata"; + }; + + passthru.updateScript = unstableGitUpdater { }; + + meta = { + homepage = "https://github.com/wb9688/wwp-switcher"; + description = "A plugin to switch active window"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ rewine ]; + inherit (wayfire.meta) platforms; + }; +}) |