gitlab-shell: use buildGoModule

This commit is contained in:
Milan Pässler 2020-11-26 13:41:28 +01:00
parent 0f344cc0db
commit 2e4862d3ba
2 changed files with 6 additions and 2101 deletions

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitLab, buildGoPackage, ruby }: { stdenv, fetchFromGitLab, buildGoModule, ruby }:
buildGoPackage rec { buildGoModule rec {
pname = "gitlab-shell"; pname = "gitlab-shell";
version = "13.13.0"; version = "13.13.0";
src = fetchFromGitLab { src = fetchFromGitLab {
@ -14,17 +14,13 @@ buildGoPackage rec {
patches = [ ./remove-hardcoded-locations.patch ]; patches = [ ./remove-hardcoded-locations.patch ];
goPackagePath = "gitlab.com/gitlab-org/gitlab-shell"; vendorSha256 = "16fa3bka0008x2yazahc6xxcv4fa6yqg74kk64v8lrp7snbvjf4d";
goDeps = ./deps.nix;
preBuild = ''
rm -rf "$NIX_BUILD_TOP/go/src/gitlab.com/gitlab-org/labkit/vendor"
'';
postInstall = '' postInstall = ''
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/bin/* $out/bin cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/{support,VERSION} $out/ cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
''; '';
doCheck = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "SSH access and repository management app for GitLab"; description = "SSH access and repository management app for GitLab";

File diff suppressed because it is too large Load Diff