mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "git-bug";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "git-bug";
|
|
repo = "git-bug";
|
|
rev = "v${version}";
|
|
sha256 = "12byf6nsamwz0ssigan1z299s01cyh8bhgj86bibl90agd4zs9n8";
|
|
};
|
|
|
|
vendorHash = "sha256-32kNDoBE50Jx1Ef9YwhDk7nd3CaTSnHPlu7PgWPUGfE=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
doCheck = false;
|
|
|
|
excludedPackages = [ "doc" "misc" ];
|
|
|
|
ldflags = [
|
|
"-X github.com/MichaelMure/git-bug/commands.GitCommit=v${version}"
|
|
"-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;
|
|
maintainers = with maintainers; [ royneary DeeUnderscore sudoforge ];
|
|
mainProgram = "git-bug";
|
|
};
|
|
}
|