at 22.05-pre 40 lines 913 B view raw
1{ lib 2, buildGoModule 3, fetchFromGitHub 4, installShellFiles 5}: 6 7buildGoModule rec { 8 pname = "gmailctl"; 9 version = "0.9.0"; 10 11 src = fetchFromGitHub { 12 owner = "mbrt"; 13 repo = "gmailctl"; 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 31 doCheck = false; 32 33 meta = with lib; { 34 description = "Declarative configuration for Gmail filters"; 35 homepage = "https://github.com/mbrt/gmailctl"; 36 license = licenses.mit; 37 maintainers = [ maintainers.doronbehar ]; 38 platforms = platforms.unix; 39 }; 40}