1{ lib, buildGoModule, fetchFromGitHub, git }: 2buildGoModule rec { 3 pname = "git-bug-migration"; 4 version = "0.3.4"; 5 6 src = fetchFromGitHub { 7 owner = "MichaelMure"; 8 repo = "git-bug-migration"; 9 rev = "v${version}"; 10 hash = "sha256-IOBgrU3C0ZHD2wx9LRVgKEJzDlUj6z2UXlHGU3tdTdQ="; 11 }; 12 13 vendorHash = "sha256-Hid9OK91LNjLmDHam0ZlrVQopVOsqbZ+BH2rfQi5lS0="; 14 15 nativeCheckInputs = [ git ]; 16 17 ldflags = [ 18 "-X main.GitExactTag=${version}" 19 "-X main.GitLastTag=${version}" 20 ]; 21 22 preCheck = '' 23 export HOME=$(mktemp -d) 24 git config --global user.name 'Nixpkgs Test User' 25 git config --global user.email 'nobody@localhost' 26 ''; 27 28 meta = with lib; { 29 description = "Tool for upgrading repositories using git-bug to new versions"; 30 homepage = "https://github.com/MichaelMure/git-bug-migration"; 31 license = licenses.gpl3Plus; 32 maintainers = with maintainers; [ DeeUnderscore ]; 33 mainProgram = "git-bug-migration"; 34 }; 35}