nixpkgs-suyu/pkgs/applications/version-management/gitlab/gitlab-shell/default.nix

33 lines
866 B
Nix
Raw Normal View History

{ lib, fetchFromGitLab, buildGoModule, ruby }:
2015-01-25 22:10:04 +01:00
2020-11-26 13:41:28 +01:00
buildGoModule rec {
pname = "gitlab-shell";
2020-12-26 22:06:22 +01:00
version = "13.14.0";
2018-09-21 09:34:26 +02:00
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-shell";
rev = "v${version}";
2020-12-26 22:06:22 +01:00
sha256 = "171c4rfffb73198fhlwk8rq7xy4b4zrnssi8c1wd0x82kqv6csb0";
};
buildInputs = [ ruby ];
patches = [ ./remove-hardcoded-locations.patch ];
2020-11-26 13:41:28 +01:00
vendorSha256 = "16fa3bka0008x2yazahc6xxcv4fa6yqg74kk64v8lrp7snbvjf4d";
2020-09-28 23:42:57 +02:00
postInstall = ''
2020-11-26 13:41:28 +01:00
cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
'';
2020-11-26 13:41:28 +01:00
doCheck = false;
meta = with lib; {
2018-09-21 09:34:26 +02:00
description = "SSH access and repository management app for GitLab";
homepage = "http://www.gitlab.com/";
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz globin talyz ];
2016-09-27 15:49:21 +02:00
license = licenses.mit;
};
}