2019-10-23 21:47:24 +01:00
|
|
|
{ stdenv, fetchFromGitLab, buildGoPackage, ruby }:
|
2015-01-25 21:10:04 +00:00
|
|
|
|
2019-10-23 21:47:24 +01:00
|
|
|
buildGoPackage rec {
|
2020-03-02 20:24:40 +00:00
|
|
|
pname = "gitlab-shell";
|
2020-05-31 05:21:09 +01:00
|
|
|
version = "13.2.0";
|
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}";
|
2020-05-31 05:21:09 +01:00
|
|
|
sha256 = "0drdpg4nmhzrmy8sl1f3hcd1278bpapgf0wmhi94xlyayh47j53a";
|
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
|
|
|
|
2019-10-23 21:47:24 +01:00
|
|
|
goPackagePath = "gitlab.com/gitlab-org/gitlab-shell";
|
|
|
|
goDeps = ./deps.nix;
|
2019-10-01 14:38:22 +01:00
|
|
|
|
2019-10-23 21:47:24 +01:00
|
|
|
postInstall = ''
|
2020-04-28 02:50:57 +01: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 17:22:49 +01:00
|
|
|
'';
|
|
|
|
|
2016-09-27 14:49:21 +01:00
|
|
|
meta = with stdenv.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
|
|
|
}
|