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";
version = "13.2.0";
2018-09-21 09:34:26 +02:00
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-shell";
rev = "v${version}";
sha256 = "0drdpg4nmhzrmy8sl1f3hcd1278bpapgf0wmhi94xlyayh47j53a";
};
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/* $out/bin
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/{support,VERSION} $out/
'';
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";
homepage = "http://www.gitlab.com/";
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz globin talyz ];
2016-09-27 15:49:21 +02:00
license = licenses.mit;
};
}