nixpkgs/pkgs/applications/version-management/gitaly/default.nix

32 lines
629 B
Nix
Raw Normal View History

2017-07-05 22:53:31 +01:00
{ stdenv, fetchFromGitLab, git, go }:
stdenv.mkDerivation rec {
2017-08-06 15:27:54 +01:00
version = "0.21.2";
2017-07-05 22:53:31 +01:00
name = "gitaly-${version}";
srcs = fetchFromGitLab {
owner = "gitlab-org";
repo = "gitaly";
rev = "v${version}";
2017-08-06 15:27:54 +01:00
sha256 = "025r6vcra2bjm6xggcgnsqgkpvd7y2w73ff6lxrn06lbr4dfbfrf";
2017-07-05 22:53:31 +01:00
};
buildInputs = [ git go ];
buildPhase = ''
make PREFIX=$out
'';
installPhase = ''
mkdir -p $out/bin
make install PREFIX=$out
'';
meta = with stdenv.lib; {
homepage = http://www.gitlab.com/;
platforms = platforms.unix;
maintainers = with maintainers; [ roblabla ];
license = licenses.mit;
};
}