2020-11-30 08:33:03 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "glab";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "1.22.0";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "profclems";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-7w6cbeZYhmV0EXXcWlXFq2pQGGxc5Ok4bba0g3fcgmE=";
|
2020-11-30 08:33:03 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
vendorSha256 = "sha256-P7gHCyFafjWOYLEtK9Eh2S2KA0e2hzc1G/ZqVaEWWB0=";
|
2020-11-30 08:33:03 +00:00
|
|
|
|
2021-08-11 14:56:57 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X main.version=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# failed to read configuration: mkdir /homeless-shelter: permission denied
|
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
2020-11-30 08:33:03 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/glab" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An open-source GitLab command line tool";
|
|
|
|
license = licenses.mit;
|
|
|
|
homepage = "https://glab.readthedocs.io/";
|
|
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
|
|
};
|
|
|
|
}
|