tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
genact: 1.2.0 -> 1.2.2
figsoda
3 years ago
165b20ea
796d4cc2
+16
-4
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
genact
default.nix
+16
-4
pkgs/applications/misc/genact/default.nix
···
1
1
-
{ lib, rustPlatform, fetchFromGitHub }:
1
1
+
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
2
2
3
3
rustPlatform.buildRustPackage rec {
4
4
pname = "genact";
5
5
-
version = "1.2.0";
5
5
+
version = "1.2.2";
6
6
7
7
src = fetchFromGitHub {
8
8
owner = "svenstaro";
9
9
repo = pname;
10
10
rev = "v${version}";
11
11
-
sha256 = "sha256-POOXawhxrPT2UgbSZE3r0br7cqJ0ao7MpycrPYa/oCc=";
11
11
+
sha256 = "sha256-MB/i1jCxoGE8cPF+NE8aS7kF7ZsGb4+OyLcPcGp1hwI=";
12
12
};
13
13
14
14
-
cargoSha256 = "sha256-2c34YarMFw2CK+7zn41GL5tXfXfnw3NvGtgSlPH5d64=";
14
14
+
cargoSha256 = "sha256-OBGJIR3REeMxHQu3ovEKSZZ8QNlhl/5jvWbR5OdsRTQ=";
15
15
+
16
16
+
nativeBuildInputs = [ installShellFiles ];
17
17
+
18
18
+
postInstall = ''
19
19
+
$out/bin/genact --print-manpage > genact.1
20
20
+
installManPage genact.1
21
21
+
22
22
+
installShellCompletion --cmd genact \
23
23
+
--bash <($out/bin/genact --print-completions bash) \
24
24
+
--fish <($out/bin/genact --print-completions fish) \
25
25
+
--zsh <($out/bin/genact --print-completions zsh)
26
26
+
'';
15
27
16
28
meta = with lib; {
17
29
description = "A nonsense activity generator";