1{ lib, fetchFromGitLab, buildGoModule, ruby, libkrb5 }:
2
3buildGoModule rec {
4 pname = "gitlab-shell";
5 version = "14.34.0";
6
7 # nixpkgs-update: no auto update
8 src = fetchFromGitLab {
9 owner = "gitlab-org";
10 repo = "gitlab-shell";
11 rev = "v${version}";
12 sha256 = "sha256-0LzZZn4kS5uRcj/uJgHvLvd6ZOLi1l4yaSqqRhmTYZs=";
13 };
14
15 buildInputs = [ ruby libkrb5 ];
16
17 patches = [ ./remove-hardcoded-locations.patch ];
18
19 vendorHash = "sha256-RtZ9d3cempY8PxaCPFJ2uEEorem6NDURHZPirr0SUjU=";
20
21 postInstall = ''
22 cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
23 cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
24 '';
25 doCheck = false;
26
27 meta = with lib; {
28 description = "SSH access and repository management app for GitLab";
29 homepage = "http://www.gitlab.com/";
30 platforms = platforms.linux;
31 maintainers = teams.gitlab.members;
32 license = licenses.mit;
33 };
34}