Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 installShellFiles, 6}: 7 8buildGoModule rec { 9 pname = "git-bug"; 10 version = "0.10.1"; 11 12 src = fetchFromGitHub { 13 owner = "git-bug"; 14 repo = "git-bug"; 15 rev = "v${version}"; 16 sha256 = "sha256-iLYhVv6QMZStuNtxvvIylFSVb1zLfC58NU2QJChFfug="; 17 }; 18 19 vendorHash = "sha256-qztAkP+CHhryhfv1uKHEpDutofMwHGun7Vr30BHWAOE="; 20 21 nativeBuildInputs = [ installShellFiles ]; 22 23 doCheck = false; 24 25 excludedPackages = [ 26 "doc" 27 "misc" 28 ]; 29 30 ldflags = [ 31 "-X github.com/git-bug/git-bug/commands.GitCommit=v${version}" 32 "-X github.com/git-bug/git-bug/commands.GitLastTag=${version}" 33 "-X github.com/git-bug/git-bug/commands.GitExactTag=${version}" 34 ]; 35 36 postInstall = '' 37 installShellCompletion \ 38 --bash misc/completion/bash/git-bug \ 39 --zsh misc/completion/zsh/git-bug \ 40 --fish misc/completion/fish/git-bug 41 42 installManPage doc/man/* 43 ''; 44 45 meta = with lib; { 46 description = "Distributed bug tracker embedded in Git"; 47 homepage = "https://github.com/git-bug/git-bug"; 48 license = licenses.gpl3Plus; 49 maintainers = with maintainers; [ 50 royneary 51 DeeUnderscore 52 sudoforge 53 ]; 54 mainProgram = "git-bug"; 55 }; 56}