nixpkgs/pkgs/by-name/hy/hyprnome/package.nix

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

44 lines
1.0 KiB
Nix
Raw Normal View History

2024-03-15 17:40:10 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
installShellFiles,
nix-update-script,
2023-08-30 18:25:57 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "hyprnome";
2023-10-30 22:53:01 +00:00
version = "0.2.0";
2023-08-30 18:25:57 +00:00
src = fetchFromGitHub {
owner = "donovanglover";
repo = "hyprnome";
rev = version;
2023-10-30 22:53:01 +00:00
hash = "sha256-zlXiT2EOIdgIDI4NQuU3C903SSq5bylBAFJXyv7mdJ4=";
2023-08-30 18:25:57 +00:00
};
2023-10-30 22:53:01 +00:00
cargoHash = "sha256-DpbRs97sr5wpJSrYF99ZiQ0SZOZdoQjfaLhKIAU95HA=";
2023-08-30 18:25:57 +00:00
2024-03-15 17:40:10 +00:00
nativeBuildInputs = [ installShellFiles ];
2023-08-30 18:25:57 +00:00
postInstall = ''
2023-10-30 22:53:01 +00:00
installManPage target/man/hyprnome.1
2023-08-30 18:25:57 +00:00
installShellCompletion --cmd hyprnome \
2024-03-15 17:40:10 +00:00
--bash target/completions/hyprnome.bash \
--fish target/completions/hyprnome.fish \
--zsh target/completions/_hyprnome
2023-08-30 18:25:57 +00:00
'';
2023-10-30 22:53:01 +00:00
passthru.updateScript = nix-update-script { };
2023-08-30 18:25:57 +00:00
meta = with lib; {
description = "GNOME-like workspace switching in Hyprland";
homepage = "https://github.com/donovanglover/hyprnome";
2023-10-30 22:53:01 +00:00
license = licenses.gpl3Plus;
2023-08-30 18:25:57 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ donovanglover ];
mainProgram = "hyprnome";
};
}