Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
python3Packages,
|
|
fetchFromGitHub,
|
|
wrapGAppsHook4,
|
|
gobject-introspection,
|
|
gtk4-layer-shell,
|
|
libadwaita,
|
|
nix-update-script,
|
|
}:
|
|
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "niriswitcher";
|
|
version = "0.7.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "isaksamsten";
|
|
repo = "niriswitcher";
|
|
tag = version;
|
|
hash = "sha256-qsw2D9Q9ZJYBsRECzT+qoytYMda4uZxX321/YxNWk9o=";
|
|
};
|
|
|
|
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 ]}
|
|
)
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
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;
|
|
};
|
|
}
|