{ lib, rustPlatform, fetchFromGitHub, pkg-config, wrapGAppsHook4, gtk4-layer-shell, hyprland, gcc, pixman, libadwaita, }: rustPlatform.buildRustPackage (finalAttrs: { pname = "hyprshell"; version = "4.9.2"; src = fetchFromGitHub { owner = "H3rmt"; repo = "hyprshell"; tag = "v${finalAttrs.version}"; hash = "sha256-1nt+/cAtIsS/3O790W2aMUuPiMV6JEjC334Sw0SD804="; }; cargoHash = "sha256-WnmK7eUjXqNUWXeaXqloYeRSp/uvg8QoYbcotm5uEt4="; nativeBuildInputs = [ wrapGAppsHook4 pkg-config ]; buildInputs = [ libadwaita gtk4-layer-shell ]; preFixup = '' gappsWrapperArgs+=( --prefix PATH : '${lib.makeBinPath [ gcc ]}' --prefix CPATH : '${ lib.makeIncludePath ( hyprland.buildInputs ++ [ hyprland pixman ] ) }' ) ''; meta = { description = "Modern GTK4-based window switcher and application launcher for Hyprland"; mainProgram = "hyprshell"; homepage = "https://github.com/H3rmt/hyprshell"; license = lib.licenses.mit; platforms = hyprland.meta.platforms; maintainers = with lib.maintainers; [ arminius-smh ]; }; })