2023-03-15 16:39:30 +00:00
|
|
|
{ lib, fetchFromGitLab, buildGoModule, ruby, libkrb5 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gitlab-shell";
|
2023-03-27 19:17:25 +00:00
|
|
|
version = "14.18.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitlab-shell";
|
|
|
|
rev = "v${version}";
|
2023-03-27 19:17:25 +00:00
|
|
|
sha256 = "sha256-dMxWnv+YfoDy9rhuCx+JIxFyjHejttkkqkQ4owdI/4g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
buildInputs = [ ruby libkrb5 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patches = [ ./remove-hardcoded-locations.patch ];
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
vendorSha256 = "sha256-zqZMZvYteOWTgDnlX8H1i8e/QTbAoTPD6ZNsHsCcLdM=";
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
2020-11-30 08:33:03 +00:00
|
|
|
cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
|
|
|
|
cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-11-30 08:33:03 +00:00
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SSH access and repository management app for GitLab";
|
|
|
|
homepage = "http://www.gitlab.com/";
|
|
|
|
platforms = platforms.linux;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ globin talyz yayayayaka ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|