forked from mirrors/nixpkgs
26 lines
615 B
Nix
26 lines
615 B
Nix
{ stdenv, fetchFromGitLab, git, go }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gitlab-workhorse-${version}";
|
|
|
|
version = "8.5.2";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "gitlab-org";
|
|
repo = "gitlab-workhorse";
|
|
rev = "v${version}";
|
|
sha256 = "0c1wpp81wr4x00pmc2z41xh4vy7yk97fkcg0cdy7gbz2hc5cm296";
|
|
};
|
|
|
|
buildInputs = [ git go ];
|
|
|
|
makeFlags = [ "PREFIX=$(out)" "VERSION=${version}" "GOCACHE=$(TMPDIR)/go-cache" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.gitlab.com/;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ fpletz globin ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|