forked from mirrors/nixpkgs
33 lines
875 B
Nix
33 lines
875 B
Nix
{ lib, fetchFromGitLab, buildGoModule, ruby }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitlab-shell";
|
|
version = "13.23.2";
|
|
src = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "gitlab-shell";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-aee+Tn81o1iK1Xm5et6lKUN8//lyGh3NGs96Mwg4nFc=";
|
|
};
|
|
|
|
buildInputs = [ ruby ];
|
|
|
|
patches = [ ./remove-hardcoded-locations.patch ];
|
|
|
|
vendorSha256 = "sha256-RLV01CM5O0K4R8XDDcas2LjIig0S7GoyAo/S8+Vx2bY=";
|
|
|
|
postInstall = ''
|
|
cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
|
|
cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
|
|
'';
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "SSH access and repository management app for GitLab";
|
|
homepage = "http://www.gitlab.com/";
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ fpletz globin talyz yayayayaka ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|