2019-10-23 22:47:24 +02:00
|
|
|
{ stdenv, fetchFromGitLab, buildGoPackage, ruby }:
|
2015-01-25 22:10:04 +01:00
|
|
|
|
2019-10-23 22:47:24 +02:00
|
|
|
buildGoPackage rec {
|
2020-03-02 21:24:40 +01:00
|
|
|
pname = "gitlab-shell";
|
2020-05-31 06:21:09 +02:00
|
|
|
version = "13.2.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-05-31 06:21:09 +02:00
|
|
|
sha256 = "0drdpg4nmhzrmy8sl1f3hcd1278bpapgf0wmhi94xlyayh47j53a";
|
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
|
|
|
|
2019-10-23 22:47:24 +02:00
|
|
|
goPackagePath = "gitlab.com/gitlab-org/gitlab-shell";
|
|
|
|
goDeps = ./deps.nix;
|
2019-10-01 15:38:22 +02:00
|
|
|
|
2019-10-23 22:47:24 +02:00
|
|
|
postInstall = ''
|
2020-04-28 03:50:57 +02:00
|
|
|
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/bin/* $out/bin
|
|
|
|
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/{support,VERSION} $out/
|
2014-10-25 18:22:49 +02:00
|
|
|
'';
|
|
|
|
|
2016-09-27 15:49:21 +02:00
|
|
|
meta = with stdenv.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
|
|
|
}
|