tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
gowall: 0.2.0 > 0.2.1
FKouhai
9 months ago
a78b73ae
3b4ccc94
+13
-4
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
go
gowall
package.nix
+13
-4
pkgs/by-name/go/gowall/package.nix
···
4
buildGoModule,
5
fetchFromGitHub,
6
installShellFiles,
0
0
7
}:
8
9
buildGoModule rec {
10
pname = "gowall";
11
-
version = "0.2.0";
12
13
src = fetchFromGitHub {
14
owner = "Achno";
15
repo = "gowall";
16
rev = "v${version}";
17
-
hash = "sha256-QKukWA8TB0FoNHu0Wyco55x4oBY+E33qdoT/SaXW6DE=";
18
};
19
20
-
vendorHash = "sha256-H2Io1K2LEFmEPJYVcEaVAK2ieBrkV6u+uX82XOvNXj4=";
21
22
-
nativeBuildInputs = [ installShellFiles ];
0
0
0
0
23
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
24
installShellCompletion --cmd gowall \
25
--bash <($out/bin/gowall completion bash) \
26
--fish <($out/bin/gowall completion fish) \
27
--zsh <($out/bin/gowall completion zsh)
28
'';
0
0
29
30
meta = {
31
changelog = "https://github.com/Achno/gowall/releases/tag/v${version}";
···
36
maintainers = with lib.maintainers; [
37
crem
38
emilytrau
0
39
];
40
};
41
}
···
4
buildGoModule,
5
fetchFromGitHub,
6
installShellFiles,
7
+
nix-update-script,
8
+
writableTmpDirAsHomeHook,
9
}:
10
11
buildGoModule rec {
12
pname = "gowall";
13
+
version = "0.2.1";
14
15
src = fetchFromGitHub {
16
owner = "Achno";
17
repo = "gowall";
18
rev = "v${version}";
19
+
hash = "sha256-fgO4AoyHR51zD86h75b06BXV0ONlFfHdBvxfJvcD7J8=";
20
};
21
22
+
vendorHash = "sha256-V/VkbJZIzy4KlEPtlTTqdUIPG6lKD+XidNM0NWpATbk=";
23
24
+
nativeBuildInputs = [
25
+
installShellFiles
26
+
# using writableTmpDirAsHomeHook to prevent issues when creating config dir for shell completions
27
+
writableTmpDirAsHomeHook
28
+
];
29
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
30
installShellCompletion --cmd gowall \
31
--bash <($out/bin/gowall completion bash) \
32
--fish <($out/bin/gowall completion fish) \
33
--zsh <($out/bin/gowall completion zsh)
34
'';
35
+
36
+
passthru.updateScript = nix-update-script { };
37
38
meta = {
39
changelog = "https://github.com/Achno/gowall/releases/tag/v${version}";
···
44
maintainers = with lib.maintainers; [
45
crem
46
emilytrau
47
+
FKouhai
48
];
49
};
50
}