nixpkgs/pkgs/applications/version-management/gitlab/gitlab-shell/default.nix

33 lines
895 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitLab, buildGoPackage, ruby }:
2015-01-25 13:10:04 -08:00
buildGoPackage rec {
pname = "gitlab-shell-go";
2019-12-22 14:48:18 -08:00
version = "10.3.0";
2018-09-21 00:34:26 -07:00
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-shell";
rev = "v${version}";
2019-12-22 14:48:18 -08:00
sha256 = "0kxbw2n5kabh0876xqn1dcjbxyrp82ms566rw065nqrb32g8c2hk";
};
buildInputs = [ ruby ];
patches = [ ./remove-hardcoded-locations.patch ];
goPackagePath = "gitlab.com/gitlab-org/gitlab-shell";
goDeps = ./deps.nix;
postInstall = ''
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/bin/* $bin/bin
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/{support,VERSION} $bin/
'';
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/;
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz globin talyz ];
2016-09-27 06:49:21 -07:00
license = licenses.mit;
};
}