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

33 lines
894 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitLab, buildGoPackage, ruby }:
2015-01-25 22:10:04 +01:00
buildGoPackage rec {
pname = "gitlab-shell-go";
version = "10.2.0";
2018-09-21 09:34:26 +02:00
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-shell";
rev = "v${version}";
sha256 = "1mpzsdqd8mlsh8wccz4s8415w080z55lnifn7l7vd5rflpnyfhcj";
};
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 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;
maintainers = with maintainers; [ fpletz globin talyz ];
2016-09-27 15:49:21 +02:00
license = licenses.mit;
};
}