niriswitcher: init at 0.5.2 (#410762)

This commit is contained in:
Aleksana 2025-05-26 19:28:51 +08:00 committed by GitHub
commit 414a4efc45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 59 additions and 0 deletions

View file

@ -3486,6 +3486,11 @@
githubId = 50839;
name = "Brian Jones";
};
bokicoder = {
github = "bokicoder";
githubId = 193465580;
name = "bokicoder";
};
boldikoller = {
email = "boldi.koller@wtss.eu";
github = "boldikoller";

View file

@ -0,0 +1,54 @@
{
lib,
python3Packages,
fetchFromGitHub,
wrapGAppsHook4,
gobject-introspection,
gtk4-layer-shell,
libadwaita,
}:
python3Packages.buildPythonPackage rec {
pname = "niriswitcher";
version = "0.5.2";
pyproject = true;
src = fetchFromGitHub {
owner = "isaksamsten";
repo = "niriswitcher";
tag = version;
hash = "sha256-jXnob/CJ3wrqYhbFRu7TnnnCrsKaDazD3t9lZoJVhdQ=";
};
build-system = [ python3Packages.hatchling ];
nativeBuildInputs = [
wrapGAppsHook4
gobject-introspection
];
buildInputs = [
gtk4-layer-shell
libadwaita
];
dependencies = [ python3Packages.pygobject3 ];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
''${gappsWrapperArgs[@]}
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gtk4-layer-shell ]}
)
'';
meta = {
description = "Application switcher for niri";
homepage = "https://github.com/isaksamsten/niriswitcher";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ bokicoder ];
mainProgram = "niriswitcher";
platforms = lib.platforms.linux;
};
}