2017-08-30 22:05:43 +01:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gerrit";
|
2019-09-05 16:50:03 +01:00
|
|
|
version = "3.0.2";
|
2017-08-30 22:05:43 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
|
2019-09-05 16:50:03 +01:00
|
|
|
sha256 = "16zh2dczjnzwzrzg0xkqs7bfd6bzk7s42gyb59z3206zpvh5kq9k";
|
2017-08-30 22:05:43 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
2017-09-05 18:20:54 +01:00
|
|
|
mkdir -p "$out"/webapps/
|
|
|
|
ln -s ${src} "$out"/webapps/gerrit-${version}.war
|
2017-08-30 22:05:43 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-09-05 16:50:03 +01:00
|
|
|
homepage = "https://www.gerritcodereview.com/index.md";
|
2017-08-30 22:05:43 +01: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;
|
|
|
|
};
|
|
|
|
}
|