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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "14.34.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# nixpkgs-update: no auto update
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitlab-shell";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-0LzZZn4kS5uRcj/uJgHvLvd6ZOLi1l4yaSqqRhmTYZs=";
|
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 ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-RtZ9d3cempY8PxaCPFJ2uEEorem6NDURHZPirr0SUjU=";
|
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;
|
2023-07-15 17:15:38 +00:00
|
|
|
maintainers = teams.gitlab.members;
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|