File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed
Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments