2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gerrit";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "3.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-mlaXCRQlqg2uwzm2/Vi15K5D6lmUUscfZQk/lW1YR+s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir -p "$out"/webapps/
|
|
|
|
ln -s ${src} "$out"/webapps/gerrit-${version}.war
|
|
|
|
'';
|
|
|
|
|
|
|
|
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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gerritcodereview.com/index.md";
|
|
|
|
license = licenses.asl20;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Web based code review and repository management for the git version control system";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = with maintainers; [ flokli zimbatm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|