nixpkgs/pkgs/by-name/gi/git-bug/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "git-bug";
version = "0.8.0";
src = fetchFromGitHub {
owner = "git-bug";
repo = "git-bug";
rev = "v${version}";
2022-12-09 16:28:13 +00:00
sha256 = "12byf6nsamwz0ssigan1z299s01cyh8bhgj86bibl90agd4zs9n8";
};
vendorHash = "sha256-32kNDoBE50Jx1Ef9YwhDk7nd3CaTSnHPlu7PgWPUGfE=";
nativeBuildInputs = [ installShellFiles ];
doCheck = false;
excludedPackages = [ "doc" "misc" ];
2021-08-26 06:45:51 +00:00
ldflags = [
"-X github.com/MichaelMure/git-bug/commands.GitCommit=v${version}"
2021-08-26 06:45:51 +00:00
"-X github.com/MichaelMure/git-bug/commands.GitLastTag=${version}"
"-X github.com/MichaelMure/git-bug/commands.GitExactTag=${version}"
];
postInstall = ''
installShellCompletion \
--bash misc/completion/bash/git-bug \
--zsh misc/completion/zsh/git-bug \
--fish misc/completion/fish/git-bug
installManPage doc/man/*
'';
meta = with lib; {
description = "Distributed bug tracker embedded in Git";
homepage = "https://github.com/git-bug/git-bug";
license = licenses.gpl3Plus;
2024-08-10 22:18:30 +00:00
maintainers = with maintainers; [ royneary DeeUnderscore sudoforge ];
2023-11-27 01:17:53 +00:00
mainProgram = "git-bug";
};
}