Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 43 lines 922 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 installShellFiles, 6}: 7 8buildGoModule rec { 9 pname = "gmailctl"; 10 version = "0.11.0"; 11 12 src = fetchFromGitHub { 13 owner = "mbrt"; 14 repo = "gmailctl"; 15 rev = "v${version}"; 16 hash = "sha256-euYl7GKidkOFsSxrEnSBIdBNZOKuBBaS3LNQOZy9R9g="; 17 }; 18 19 vendorHash = "sha256-OXz6GlpC9yhe4pRuVxTUUruJyxBQ63JC4a8xwtuDM/o="; 20 21 nativeBuildInputs = [ 22 installShellFiles 23 ]; 24 25 postInstall = '' 26 installShellCompletion --cmd gmailctl \ 27 --bash <($out/bin/gmailctl completion bash) \ 28 --fish <($out/bin/gmailctl completion fish) \ 29 --zsh <($out/bin/gmailctl completion zsh) 30 ''; 31 32 doCheck = false; 33 34 meta = with lib; { 35 description = "Declarative configuration for Gmail filters"; 36 homepage = "https://github.com/mbrt/gmailctl"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ 39 doronbehar 40 SuperSandro2000 41 ]; 42 }; 43}