gitlab-shell: use buildGoModule
This commit is contained in:
parent
0f344cc0db
commit
2e4862d3ba
@ -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
Loading…
x
Reference in New Issue
Block a user