Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildGoModule 3, fetchFromGitHub 4, installShellFiles 5}: 6 7buildGoModule rec { 8 pname = "gmailctl"; 9 version = "0.10.6"; 10 11 src = fetchFromGitHub { 12 owner = "mbrt"; 13 repo = "gmailctl"; 14 rev = "v${version}"; 15 sha256 = "sha256-OpRkBHNWRrBhh6nGrV7dZT01xsSlbANCk+g7b8SidG0="; 16 }; 17 18 vendorSha256 = "sha256-+r0WHrKARcxW1hUY1HwAXk0X6ZQrbgBj9+GjIJV5DS0="; 19 20 nativeBuildInputs = [ 21 installShellFiles 22 ]; 23 24 postInstall = '' 25 installShellCompletion --cmd gmailctl \ 26 --bash <($out/bin/gmailctl completion bash) \ 27 --fish <($out/bin/gmailctl completion fish) \ 28 --zsh <($out/bin/gmailctl completion zsh) 29 ''; 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 = with maintainers; [ doronbehar SuperSandro2000 ]; 38 }; 39}