2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitLab, buildGoModule, ruby }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gitlab-shell";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "13.19.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitlab-shell";
|
|
|
|
rev = "v${version}";
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "sha256-F0TW0VjO5hc/lHqZhhMJJvpHazWRyR7Q7W324Fgn7fA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ruby ];
|
|
|
|
|
|
|
|
patches = [ ./remove-hardcoded-locations.patch ];
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
vendorSha256 = "sha256-+nUMxHWo/d/WrQ4LAEG2+ghtNBF9vcnSyg6Ki412rPA=";
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
2020-11-30 08:33:03 +00:00
|
|
|
cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
|
|
|
|
cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-11-30 08:33:03 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SSH access and repository management app for GitLab";
|
|
|
|
homepage = "http://www.gitlab.com/";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ fpletz globin talyz ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|