2019-10-23 13:47:24 -07:00
|
|
|
{ stdenv, fetchFromGitLab, buildGoPackage, ruby }:
|
2015-01-25 13:10:04 -08:00
|
|
|
|
2019-10-23 13:47:24 -07:00
|
|
|
buildGoPackage rec {
|
2020-03-02 12:24:40 -08:00
|
|
|
pname = "gitlab-shell";
|
2020-01-31 03:25:11 -08:00
|
|
|
version = "11.0.0";
|
2018-09-21 00:34:26 -07:00
|
|
|
src = fetchFromGitLab {
|
2016-01-30 05:47:04 -08:00
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitlab-shell";
|
|
|
|
rev = "v${version}";
|
2020-01-31 03:25:11 -08:00
|
|
|
sha256 = "1ca4yil8gp1cm7w939irp1x2y907z2mkdqiap8ik8mqp8svv1m44";
|
2014-10-25 09:22:49 -07:00
|
|
|
};
|
2019-10-01 06:38:22 -07:00
|
|
|
|
2019-10-23 13:47:24 -07:00
|
|
|
buildInputs = [ ruby ];
|
2019-10-01 06:38:22 -07:00
|
|
|
|
2019-10-23 13:47:24 -07:00
|
|
|
patches = [ ./remove-hardcoded-locations.patch ];
|
2019-10-01 06:38:22 -07:00
|
|
|
|
2019-10-23 13:47:24 -07:00
|
|
|
goPackagePath = "gitlab.com/gitlab-org/gitlab-shell";
|
|
|
|
goDeps = ./deps.nix;
|
2019-10-01 06:38:22 -07:00
|
|
|
|
2019-10-23 13:47:24 -07:00
|
|
|
postInstall = ''
|
|
|
|
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/bin/* $bin/bin
|
|
|
|
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/{support,VERSION} $bin/
|
2014-10-25 09:22:49 -07:00
|
|
|
'';
|
|
|
|
|
2016-09-27 06:49:21 -07:00
|
|
|
meta = with stdenv.lib; {
|
2018-09-21 00:34:26 -07:00
|
|
|
description = "SSH access and repository management app for GitLab";
|
2016-09-27 06:49:21 -07:00
|
|
|
homepage = http://www.gitlab.com/;
|
2019-10-09 06:45:12 -07:00
|
|
|
platforms = platforms.linux;
|
2019-10-08 07:37:01 -07:00
|
|
|
maintainers = with maintainers; [ fpletz globin talyz ];
|
2016-09-27 06:49:21 -07:00
|
|
|
license = licenses.mit;
|
2016-08-02 09:06:29 -07:00
|
|
|
};
|
2014-10-25 09:22:49 -07:00
|
|
|
}
|