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