Skip to content

Commit

Permalink
gitlab-shell: use buildGoModule
Browse files Browse the repository at this point in the history
  • Loading branch information
Milan Pässler committed Nov 26, 2020
1 parent 0f344cc commit 2e4862d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2,101 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 {
Expand All @@ -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";
Expand Down

0 comments on commit 2e4862d

Please sign in to comment.