nixpkgs/pkgs/applications/version-management/gitlab-workhorse/default.nix

34 lines
702 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitLab, git, go }:
stdenv.mkDerivation rec {
2018-05-23 20:23:10 +00:00
version = "4.2.0";
name = "gitlab-workhorse-${version}";
srcs = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-workhorse";
rev = "v${version}";
2018-05-23 20:23:10 +00:00
sha256 = "11n43mfp7a59iq8k7sh9bnww3bq56ml2p6752csclg77xii6dzyy";
};
buildInputs = [ git go ];
patches = [ ./remove-hardcoded-paths.patch ];
buildPhase = ''
make PREFIX=$out
'';
installPhase = ''
mkdir -p $out/bin
make install PREFIX=$out
'';
2016-09-27 13:49:21 +00:00
meta = with stdenv.lib; {
homepage = http://www.gitlab.com/;
platforms = platforms.unix;
2018-04-25 17:56:45 +00:00
maintainers = with maintainers; [ fpletz globin ];
2016-09-27 13:49:21 +00:00
license = licenses.mit;
};
}