Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.2 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
wrapGAppsHook4,
gtk4,
gtk4-layer-shell,
hyprland,
gcc,
pixman,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "hyprshell";
version = "4.7.1";
src = fetchFromGitHub {
owner = "H3rmt";
repo = "hyprshell";
tag = "v${finalAttrs.version}";
hash = "sha256-SRw1X2oC7V/h2Tqo/wTXcu6d1kKVMPrW2HGsNGE4nCA=";
};
cargoHash = "sha256-ULuztkKukOyfQkiGZY7HtWn5nSs2PWX8B86FQP/z7RU=";
nativeBuildInputs = [
wrapGAppsHook4
pkg-config
];
buildInputs = [
gtk4
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 ];
};
})