2016-01-30 13:47:04 +00:00
|
|
|
{ stdenv, fetchFromGitLab, git, go }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-11-06 19:39:03 +00:00
|
|
|
version = "3.2.0";
|
2016-01-30 13:47:04 +00:00
|
|
|
name = "gitlab-workhorse-${version}";
|
|
|
|
|
|
|
|
srcs = fetchFromGitLab {
|
|
|
|
owner = "gitlab-org";
|
|
|
|
repo = "gitlab-workhorse";
|
2016-08-03 17:49:18 +01:00
|
|
|
rev = "v${version}";
|
2017-11-06 19:39:03 +00:00
|
|
|
sha256 = "1ivqlhvmxhdb8359yh469zl45j00n94b53naqi8jx06kijfsdz4r";
|
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 17:06:29 +01:00
|
|
|
|
2016-09-27 14:49:21 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.gitlab.com/;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
license = licenses.mit;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2016-01-30 13:47:04 +00:00
|
|
|
}
|