nixpkgs/pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix
2018-12-25 15:25:45 +01:00

27 lines
635 B
Nix

{ stdenv, fetchFromGitLab, git, go }:
stdenv.mkDerivation rec {
name = "gitlab-workhorse-${version}";
version = "7.6.0";
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-workhorse";
rev = "v${version}";
sha256 = "13wr2az3bp6qnb05505sb5qn0fl2syaclc40dwjcdwwmhaalj2m4";
};
buildInputs = [ git go ];
patches = [ ./remove-hardcoded-paths.patch ];
makeFlags = [ "PREFIX=$(out)" "VERSION=${version}" ];
meta = with stdenv.lib; {
homepage = http://www.gitlab.com/;
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz globin ];
license = licenses.mit;
};
}