Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
44 lines
1011 B
Nix
44 lines
1011 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
gitMinimal,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "git-bug-migration";
|
|
version = "0.3.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "MichaelMure";
|
|
repo = "git-bug-migration";
|
|
rev = "v${version}";
|
|
hash = "sha256-IOBgrU3C0ZHD2wx9LRVgKEJzDlUj6z2UXlHGU3tdTdQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-Hid9OK91LNjLmDHam0ZlrVQopVOsqbZ+BH2rfQi5lS0=";
|
|
|
|
nativeCheckInputs = [ gitMinimal ];
|
|
|
|
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
|
|
sudoforge
|
|
];
|
|
mainProgram = "git-bug-migration";
|
|
};
|
|
}
|