gitlab-shell: use buildGoModule
This commit is contained in:
parent
0f344cc0db
commit
2e4862d3ba
2 changed files with 6 additions and 2101 deletions
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, fetchFromGitLab, buildGoPackage, ruby }:
|
||||
{ stdenv, fetchFromGitLab, buildGoModule, ruby }:
|
||||
|
||||
buildGoPackage rec {
|
||||
buildGoModule rec {
|
||||
pname = "gitlab-shell";
|
||||
version = "13.13.0";
|
||||
src = fetchFromGitLab {
|
||||
|
@ -14,17 +14,13 @@ buildGoPackage rec {
|
|||
|
||||
patches = [ ./remove-hardcoded-locations.patch ];
|
||||
|
||||
goPackagePath = "gitlab.com/gitlab-org/gitlab-shell";
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
preBuild = ''
|
||||
rm -rf "$NIX_BUILD_TOP/go/src/gitlab.com/gitlab-org/labkit/vendor"
|
||||
'';
|
||||
vendorSha256 = "16fa3bka0008x2yazahc6xxcv4fa6yqg74kk64v8lrp7snbvjf4d";
|
||||
|
||||
postInstall = ''
|
||||
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/bin/* $out/bin
|
||||
cp -r "$NIX_BUILD_TOP/go/src/$goPackagePath"/{support,VERSION} $out/
|
||||
cp -r "$NIX_BUILD_TOP/source"/bin/* $out/bin
|
||||
cp -r "$NIX_BUILD_TOP/source"/{support,VERSION} $out/
|
||||
'';
|
||||
doCheck = false;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "SSH access and repository management app for GitLab";
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue