nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.2 kB view raw
1{ 2 lib, 3 python3Packages, 4 fetchFromGitHub, 5 wrapGAppsHook4, 6 gobject-introspection, 7 gtk4-layer-shell, 8 libadwaita, 9 nix-update-script, 10}: 11 12python3Packages.buildPythonPackage rec { 13 pname = "niriswitcher"; 14 version = "0.7.1"; 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "isaksamsten"; 19 repo = "niriswitcher"; 20 tag = version; 21 hash = "sha256-qsw2D9Q9ZJYBsRECzT+qoytYMda4uZxX321/YxNWk9o="; 22 }; 23 24 build-system = [ python3Packages.hatchling ]; 25 26 nativeBuildInputs = [ 27 wrapGAppsHook4 28 gobject-introspection 29 ]; 30 31 buildInputs = [ 32 gtk4-layer-shell 33 libadwaita 34 ]; 35 36 dependencies = [ python3Packages.pygobject3 ]; 37 38 dontWrapGApps = true; 39 40 preFixup = '' 41 makeWrapperArgs+=( 42 ''${gappsWrapperArgs[@]} 43 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ gtk4-layer-shell ]} 44 ) 45 ''; 46 47 passthru.updateScript = nix-update-script { }; 48 49 meta = { 50 description = "Application switcher for niri"; 51 homepage = "https://github.com/isaksamsten/niriswitcher"; 52 license = lib.licenses.mit; 53 maintainers = with lib.maintainers; [ bokicoder ]; 54 mainProgram = "niriswitcher"; 55 platforms = lib.platforms.linux; 56 }; 57}