2017-08-30 14:05:43 -07:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "gerrit";
|
2020-01-06 06:04:09 -08:00
|
|
|
version = "3.1.2";
|
2017-08-30 14:05:43 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
|
2020-01-06 06:04:09 -08:00
|
|
|
sha256 = "01hak4gqaqn40a0qvmg8a89ai3ndnjls5v64m8awig8j1yysz5vl";
|
2017-08-30 14:05:43 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
2017-09-05 10:20:54 -07:00
|
|
|
mkdir -p "$out"/webapps/
|
|
|
|
ln -s ${src} "$out"/webapps/gerrit-${version}.war
|
2017-08-30 14:05:43 -07:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-09-05 08:50:03 -07:00
|
|
|
homepage = "https://www.gerritcodereview.com/index.md";
|
2017-08-30 14:05:43 -07:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "A web based code review and repository management for the git version control system";
|
|
|
|
maintainers = with maintainers; [ jammerful ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|