wayfirePlugins.wwp-switcher: init at unstable-2023-09-09

This commit is contained in:
rewine 2024-03-23 23:06:46 +08:00 committed by Bobby Rong
parent d3753949d8
commit ab2c5d034e
No known key found for this signature in database
2 changed files with 66 additions and 0 deletions

View File

@ -11,5 +11,6 @@ lib.makeScope pkgs.newScope (self:
wcm = callPackage ./wcm.nix { };
wf-shell = callPackage ./wf-shell.nix { };
windecor = callPackage ./windecor.nix { };
wwp-switcher = callPackage ./wwp-switcher.nix { };
}
)

View File

@ -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;
};
})