2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2017-08-30 21:05:43 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gerrit";
|
2022-10-12 07:58:10 +00:00
|
|
|
version = "3.6.2";
|
2017-08-30 21:05:43 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
|
2022-10-12 07:58:10 +00:00
|
|
|
sha256 = "sha256-/OckQD6r9WSMx9Vt44eFpzsacH6VMa6NJX6sj2HBQSs=";
|
2017-08-30 21:05:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
2017-09-05 17:20:54 +00:00
|
|
|
mkdir -p "$out"/webapps/
|
|
|
|
ln -s ${src} "$out"/webapps/gerrit-${version}.war
|
2017-08-30 21:05:43 +00:00
|
|
|
'';
|
|
|
|
|
2020-03-05 21:11:28 +00:00
|
|
|
passthru = {
|
|
|
|
# A list of plugins that are part of the gerrit.war file.
|
|
|
|
# Use `java -jar gerrit.war ls | grep plugins/` to generate that list.
|
|
|
|
plugins = [
|
|
|
|
"codemirror-editor"
|
|
|
|
"commit-message-length-validator"
|
|
|
|
"delete-project"
|
|
|
|
"download-commands"
|
|
|
|
"gitiles"
|
|
|
|
"hooks"
|
|
|
|
"plugin-manager"
|
|
|
|
"replication"
|
|
|
|
"reviewnotes"
|
|
|
|
"singleusergroup"
|
|
|
|
"webhooks"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-05 15:50:03 +00:00
|
|
|
homepage = "https://www.gerritcodereview.com/index.md";
|
2017-08-30 21:05:43 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
description = "A web based code review and repository management for the git version control system";
|
2022-06-02 13:38:41 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-07-13 15:41:32 +00:00
|
|
|
maintainers = with maintainers; [ flokli jammerful zimbatm ];
|
2017-08-30 21:05:43 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|