2016-01-30 13:47:04 +00:00
|
|
|
{ stdenv, fetchFromGitLab, git, go }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-08-03 16:49:18 +00:00
|
|
|
version = "0.7.8";
|
2016-01-30 13:47:04 +00:00
|
|
|
name = "gitlab-workhorse-${version}";
|
|
|
|
|
|
|
|
srcs = fetchFromGitLab {
|
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitlab-workhorse";
|
2016-08-03 16:49:18 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "03lhgmd8w2ainvgf2q3pgafz2jl5g4x32qyybyijlyxfl07vkg4g";
|
2016-01-30 13:47:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ git go ];
|
|
|
|
|
|
|
|
patches = [ ./remove-hardcoded-paths.patch ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make PREFIX=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
make install PREFIX=$out
|
|
|
|
'';
|
2016-08-02 16:06:29 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2016-01-30 13:47:04 +00:00
|
|
|
}
|