3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/gitlab/gitlab-shell/default.nix

33 lines
864 B
Nix
Raw Normal View History

{ lib, fetchFromGitLab, buildGoModule, ruby }:
2015-01-25 21:10:04 +00:00
2020-11-26 12:41:28 +00:00
buildGoModule rec {
pname = "gitlab-shell";
2021-08-05 13:22:39 +01:00
version = "13.19.1";
2018-09-21 08:34:26 +01:00
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-shell";
rev = "v${version}";
2021-08-05 13:22:39 +01:00
sha256 = "sha256-F0TW0VjO5hc/lHqZhhMJJvpHazWRyR7Q7W324Fgn7fA=";
};
buildInputs = [ ruby ];
patches = [ ./remove-hardcoded-locations.patch ];
vendorSha256 = "sha256-+nUMxHWo/d/WrQ4LAEG2+ghtNBF9vcnSyg6Ki412rPA=";
2020-09-28 22:42:57 +01:00
postInstall = ''
2020-11-26 12:41:28 +00:00
cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
'';
2020-11-26 12:41:28 +00:00
doCheck = false;
meta = with lib; {
2018-09-21 08:34:26 +01: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 14:49:21 +01:00
license = licenses.mit;
};
}