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