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 {
|
|
|
|
pname = "gitlab-shell-go";
|
|
|
|
version = "10.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}";
|
2019-10-23 22:47:24 +02:00
|
|
|
sha256 = "1mpzsdqd8mlsh8wccz4s8415w080z55lnifn7l7vd5rflpnyfhcj";
|
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 = ''
|
|
|
|
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 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";
|
2016-09-27 15:49:21 +02:00
|
|
|
homepage = http://www.gitlab.com/;
|
|
|
|
platforms = platforms.unix;
|
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
|
|
|
}
|