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";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "14.15.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitlab-shell";
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-GDhYBL5LT3r6UIjDDY3LV5VgcBch190hYLPb6uMWETs=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ruby ];
|
|
|
|
|
|
|
|
patches = [ ./remove-hardcoded-locations.patch ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
vendorSha256 = "sha256-2DpQNJw67ipIW3ctHDJthuDrKNZCYvjXGlDxzBEMGWs=";
|
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;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ globin talyz yayayayaka ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|