2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitLab, buildGoModule, ruby }:
|
2015-01-25 21:10:04 +00:00
|
|
|
|
2020-11-26 12:41:28 +00:00
|
|
|
buildGoModule rec {
|
2020-03-02 20:24:40 +00:00
|
|
|
pname = "gitlab-shell";
|
2022-01-23 11:16:35 +00:00
|
|
|
version = "13.22.2";
|
2018-09-21 08:34:26 +01:00
|
|
|
src = fetchFromGitLab {
|
2016-01-30 13:47:04 +00:00
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitlab-shell";
|
|
|
|
rev = "v${version}";
|
2022-01-23 11:16:35 +00:00
|
|
|
sha256 = "sha256-jAH/MKmCIybLXsypHehQJaKf+mK9ko5XqWoDH/XKE5w=";
|
2014-10-25 17:22:49 +01:00
|
|
|
};
|
2019-10-01 14:38:22 +01:00
|
|
|
|
2019-10-23 21:47:24 +01:00
|
|
|
buildInputs = [ ruby ];
|
2019-10-01 14:38:22 +01:00
|
|
|
|
2019-10-23 21:47:24 +01:00
|
|
|
patches = [ ./remove-hardcoded-locations.patch ];
|
2019-10-01 14:38:22 +01:00
|
|
|
|
2021-09-30 22:00:55 +01:00
|
|
|
vendorSha256 = "sha256-cE6phpVYcZNCEk6bElEksIf4GOr/5vJPRdlGCubRafE=";
|
2020-09-28 22:42:57 +01:00
|
|
|
|
2019-10-23 21:47:24 +01:00
|
|
|
postInstall = ''
|
2020-11-26 12:41:28 +00:00
|
|
|
cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
|
|
|
|
cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
|
2014-10-25 17:22:49 +01:00
|
|
|
'';
|
2020-11-26 12:41:28 +00:00
|
|
|
doCheck = false;
|
2014-10-25 17:22:49 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-09-21 08:34:26 +01:00
|
|
|
description = "SSH access and repository management app for GitLab";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.gitlab.com/";
|
2019-10-09 14:45:12 +01:00
|
|
|
platforms = platforms.linux;
|
2019-10-08 15:37:01 +01:00
|
|
|
maintainers = with maintainers; [ fpletz globin talyz ];
|
2016-09-27 14:49:21 +01:00
|
|
|
license = licenses.mit;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2014-10-25 17:22:49 +01:00
|
|
|
}
|