git-repo-go: init at 0.7.8

This commit is contained in:
Erwin Boskma 2024-03-28 14:14:45 +01:00
parent e99de3618d
commit 84859c0d08
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -0,0 +1,52 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "git-repo-go";
version = "0.7.8";
src = fetchFromGitHub {
owner = "alibaba";
repo = "git-repo-go";
rev = "v${version}";
hash = "sha256-DOsi7JHDobtGLE/nKntm7vE9QrTdzPnO1EnxG7WB2dA=";
};
vendorHash = "sha256-rIk6qPJ3XSMgroHaMyxpjjUrejG/jlvNL7MwW/V2HzQ=";
ldflags = [
"-s"
"-w"
];
# doCheck = false;
checkFlags =
let
skipTests = [
"Test_InstallRepoConfig"
"TestRepositoryInit"
"TestRepositoryFetch"
"TestRepositoryIsUnborn"
"TestFindGitWorkSpace"
"TestProjectGitInit"
"TestLoadRepoWorkSpace"
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skipTests}$" ];
postInstall = ''
mv $out/bin/git-repo-go $out/bin/git-repo
'';
meta = with lib; {
description = "Git-repo is a command-line tool for centralized workflow, can work with Gerrit, AGit-Flow compatible servers. It is written in Golang, and it can be installed easily without further dependency. It provides an easy-to-use solution for multiple repositories which is introduced by Android repo first, and it can also work with a single repository";
homepage = "https://github.com/alibaba/git-repo-go";
changelog = "https://github.com/alibaba/git-repo-go/blob/${src.rev}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ ];
mainProgram = "git-repo-go";
};
}