mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
61 lines
1.2 KiB
Nix
61 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
wrapGAppsHook4,
|
|
gtk4-layer-shell,
|
|
hyprland,
|
|
gcc,
|
|
pixman,
|
|
libadwaita,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "hyprshell";
|
|
version = "4.8.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "H3rmt";
|
|
repo = "hyprshell";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-MO3v5YTVRGp0k0WNZSmal2e9Un9EBCsKwl3NL5PyJUI=";
|
|
};
|
|
|
|
cargoHash = "sha256-4XlyVuePqB9hBNNOjnipA2FVJJwP/7dJR594o8u1rNQ=";
|
|
|
|
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 ];
|
|
};
|
|
})
|