From 8d41e45d35d48eec5ef4e7e14deaebbeaff921c2 Mon Sep 17 00:00:00 2001 From: arminius-smh Date: Mon, 10 Mar 2025 14:36:31 +0100 Subject: [PATCH] hyprswitch: init at 3.3.2 --- pkgs/by-name/hy/hyprswitch/package.nix | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 pkgs/by-name/hy/hyprswitch/package.nix diff --git a/pkgs/by-name/hy/hyprswitch/package.nix b/pkgs/by-name/hy/hyprswitch/package.nix new file mode 100644 index 000000000000..0eb1b46fc724 --- /dev/null +++ b/pkgs/by-name/hy/hyprswitch/package.nix @@ -0,0 +1,41 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + wrapGAppsHook4, + gtk4-layer-shell, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "hyprswitch"; + version = "3.3.2"; + + src = fetchFromGitHub { + owner = "H3rmt"; + repo = "hyprswitch"; + tag = "v${finalAttrs.version}"; + hash = "sha256-cmo544QvdacVTHPqmc6er4xnSSc63e6Z71BS0FxSklE="; + }; + + useFetchCargoVendor = true; + cargoHash = "sha256-DEifup2oAcqZplx2JoN3hkP1VmxwYVFS8ZqfpR80baA="; + + nativeBuildInputs = [ + wrapGAppsHook4 + pkg-config + ]; + + buildInputs = [ + gtk4-layer-shell + ]; + + meta = { + description = "CLI/GUI that allows switching between windows in Hyprland"; + mainProgram = "hyprswitch"; + homepage = "https://github.com/H3rmt/hyprswitch"; + license = lib.licenses.mit; + platforms = lib.platforms.linux; + maintainers = with lib.maintainers; [ arminius-smh ]; + }; +})