tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
twitch-cli: add shell completions
Assistant
4 months ago
da322617
c226823e
+14
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
tw
twitch-cli
package.nix
+14
pkgs/by-name/tw/twitch-cli/package.nix
···
1
{
0
2
buildGoModule,
3
fetchFromGitHub,
0
4
lib,
5
testers,
6
twitch-cli,
···
31
32
preCheck = ''
33
export HOME=$(mktemp -d)
0
0
0
0
0
0
0
0
0
0
0
0
34
'';
35
36
__darwinAllowLocalNetworking = true;
···
1
{
2
+
stdenv,
3
buildGoModule,
4
fetchFromGitHub,
5
+
installShellFiles,
6
lib,
7
testers,
8
twitch-cli,
···
33
34
preCheck = ''
35
export HOME=$(mktemp -d)
36
+
'';
37
+
38
+
nativeBuildInputs = [ installShellFiles ];
39
+
40
+
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
41
+
$out/bin/twitch-cli completion bash > twitch-cli.bash
42
+
$out/bin/twitch-cli completion fish > twitch-cli.fish
43
+
$out/bin/twitch-cli completion zsh > _twitch-cli
44
+
installShellCompletion --cmd twitch-cli \
45
+
--bash twitch-cli.bash \
46
+
--fish twitch-cli.fish \
47
+
--zsh _twitch-cli
48
'';
49
50
__darwinAllowLocalNetworking = true;