8a45d4525b
GitOrigin-RevId: 710fed5a2483f945b14f4a58af2cd3676b42d8c8
32 lines
875 B
Nix
32 lines
875 B
Nix
{ lib, fetchFromGitLab, buildGoModule, ruby }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitlab-shell";
|
|
version = "13.24.0";
|
|
src = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "gitlab-shell";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-/SH1YNmZr/NuCvyL6tmyTj1C2LUuxldeHwmJHWKPz2M=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|