mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 17:14:33 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
35 lines
926 B
Nix
35 lines
926 B
Nix
{ lib, buildGoModule, fetchFromGitHub, git }:
|
|
buildGoModule rec {
|
|
pname = "git-bug-migration";
|
|
version = "0.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MichaelMure";
|
|
repo = "git-bug-migration";
|
|
rev = "v${version}";
|
|
hash = "sha256-IOBgrU3C0ZHD2wx9LRVgKEJzDlUj6z2UXlHGU3tdTdQ=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-Hid9OK91LNjLmDHam0ZlrVQopVOsqbZ+BH2rfQi5lS0=";
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
ldflags = [
|
|
"-X main.GitExactTag=${version}"
|
|
"-X main.GitLastTag=${version}"
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$(mktemp -d)
|
|
git config --global user.name 'Nixpkgs Test User'
|
|
git config --global user.email 'nobody@localhost'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool for upgrading repositories using git-bug to new versions";
|
|
homepage = "https://github.com/MichaelMure/git-bug-migration";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ DeeUnderscore ];
|
|
};
|
|
}
|