tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gmailctl: install completion files
Doron Behar
4 years ago
d95f44ad
77382d5e
+12
1 changed file
expand all
collapse all
unified
split
pkgs
applications
networking
gmailctl
default.nix
+12
pkgs/applications/networking/gmailctl/default.nix
···
1
{ lib
2
, buildGoModule
3
, fetchFromGitHub
0
4
}:
5
6
buildGoModule rec {
···
13
rev = "v${version}";
14
sha256 = "sha256-1gOixuOvPHEjnnDNNda9sktnhffovOfeG4XDrLRRMlE=";
15
};
0
0
0
0
0
0
0
0
0
0
0
16
17
vendorSha256 = "sha256-Yv3OGHFOmenst/ujUgvCaSEjwwBf3W9n+55ztVhuWjo=";
18
···
1
{ lib
2
, buildGoModule
3
, fetchFromGitHub
4
+
, installShellFiles
5
}:
6
7
buildGoModule rec {
···
14
rev = "v${version}";
15
sha256 = "sha256-1gOixuOvPHEjnnDNNda9sktnhffovOfeG4XDrLRRMlE=";
16
};
17
+
18
+
nativeBuildInputs = [
19
+
installShellFiles
20
+
];
21
+
22
+
postInstall = ''
23
+
installShellCompletion --cmd gmailctl \
24
+
--bash <($out/bin/gmailctl completion bash) \
25
+
--fish <($out/bin/gmailctl completion fish) \
26
+
--zsh <($out/bin/gmailctl completion zsh)
27
+
'';
28
29
vendorSha256 = "sha256-Yv3OGHFOmenst/ujUgvCaSEjwwBf3W9n+55ztVhuWjo=";
30