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

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

37 lines
1.0 KiB
Nix
Raw Normal View History

2022-10-10 13:15:17 +00:00
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
2021-08-26 02:29:33 +00:00
rustPlatform.buildRustPackage rec {
pname = "genact";
2024-02-20 02:03:41 +00:00
version = "1.4.2";
2021-08-26 02:29:33 +00:00
src = fetchFromGitHub {
owner = "svenstaro";
repo = pname;
rev = "v${version}";
2024-02-20 02:03:41 +00:00
sha256 = "sha256-Rn9kJWutWKPj9cLu2ZJKITmC+I8/ikhCAoIp00Yg6ZA=";
2021-08-26 02:29:33 +00:00
};
2024-02-20 02:03:41 +00:00
cargoHash = "sha256-kmXtwS5pCLEq5dbNHtWYGzDKjOUlVlr5xippVd2wl8k=";
2022-10-10 13:15:17 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
$out/bin/genact --print-manpage > genact.1
installManPage genact.1
installShellCompletion --cmd genact \
--bash <($out/bin/genact --print-completions bash) \
--fish <($out/bin/genact --print-completions fish) \
--zsh <($out/bin/genact --print-completions zsh)
'';
2021-08-26 02:29:33 +00:00
meta = with lib; {
description = "Nonsense activity generator";
2021-08-26 02:29:33 +00:00
homepage = "https://github.com/svenstaro/genact";
2022-09-09 23:49:53 +00:00
changelog = "https://github.com/svenstaro/genact/blob/v${version}/CHANGELOG.md";
2021-08-26 02:29:33 +00:00
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
2024-02-11 02:19:15 +00:00
mainProgram = "genact";
2021-08-26 02:29:33 +00:00
};
}