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

31 lines
575 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitLab, git, go }:
stdenv.mkDerivation rec {
2016-08-26 14:08:53 +02:00
version = "0.7.11";
name = "gitlab-workhorse-${version}";
srcs = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitlab-workhorse";
rev = "v${version}";
2016-08-26 14:08:53 +02:00
sha256 = "1z32nf9qbw050wzl1dsydrs68c9fp5kkvdn58z2g88bbyk6gyivm";
};
buildInputs = [ git go ];
patches = [ ./remove-hardcoded-paths.patch ];
buildPhase = ''
make PREFIX=$out
'';
installPhase = ''
mkdir -p $out/bin
make install PREFIX=$out
'';
meta = {
platforms = stdenv.lib.platforms.unix;
};
}