nixpkgs/pkgs/applications/misc/hyprnome/default.nix

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

45 lines
1.1 KiB
Nix
Raw Normal View History

2023-08-30 18:25:57 +00:00
{ lib
, rustPlatform
, fetchFromGitHub
, installShellFiles
2023-10-30 22:53:01 +00:00
, 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
nativeBuildInputs = [
installShellFiles
];
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 \
2023-10-30 22:53:01 +00:00
--bash <(cat target/completions/hyprnome.bash) \
--fish <(cat target/completions/hyprnome.fish) \
--zsh <(cat 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";
};
}