Skip to content

Commit d6adda6

Browse files
authored
Merge pull request #332409 from emilytrau/gowall
gowall: init at 0.1.5
2 parents a3f3432 + de378c8 commit d6adda6

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

pkgs/by-name/go/gowall/package.nix

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
lib,
3+
stdenv,
4+
buildGoModule,
5+
fetchFromGitHub,
6+
installShellFiles,
7+
}:
8+
9+
buildGoModule rec {
10+
pname = "gowall";
11+
version = "0.1.5";
12+
13+
src = fetchFromGitHub {
14+
owner = "Achno";
15+
repo = "gowall";
16+
rev = "v${version}";
17+
hash = "sha256-4h7vRu1aqCGccKx2UiLSFNloqf22QUml4BHkKzzdwYA=";
18+
};
19+
20+
vendorHash = "sha256-jNx4ehew+IBx7M6ey/rT0vb53+9OBVYSEDJv8JWfZIw=";
21+
22+
nativeBuildInputs = [ installShellFiles ];
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+
'';
29+
30+
meta = {
31+
changelog = "https://github.com/Achno/gowall/releases/tag/v${version}";
32+
description = "Tool to convert a Wallpaper's color scheme / palette";
33+
homepage = "https://github.com/Achno/gowall";
34+
license = lib.licenses.mit;
35+
mainProgram = "gowall";
36+
maintainers = with lib.maintainers; [
37+
crem
38+
emilytrau
39+
];
40+
};
41+
}

0 commit comments

Comments
 (0)