bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
37 lines
924 B
Nix
37 lines
924 B
Nix
{ lib, fetchFromGitLab, buildGoModule, ruby, libkrb5 }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gitlab-shell";
|
|
version = "14.35.0";
|
|
|
|
# nixpkgs-update: no auto update
|
|
src = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "gitlab-shell";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-WyIUdDKPKQE1Ddz40WaMA5lDs37OyDuZl/6/nKDYY/8=";
|
|
};
|
|
|
|
buildInputs = [ ruby libkrb5 ];
|
|
|
|
patches = [
|
|
./remove-hardcoded-locations.patch
|
|
./go-mod-tidy.patch
|
|
];
|
|
|
|
vendorHash = "sha256-7TUHD14/aCs3lkpTy5CH9WYUc1Ud6rDFCx+JgsINvxU=";
|
|
|
|
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 = teams.gitlab.members;
|
|
license = licenses.mit;
|
|
};
|
|
}
|