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