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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

44 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl }:
2017-08-30 23:05:43 +02:00
stdenv.mkDerivation rec {
pname = "gerrit";
2022-03-29 10:40:37 +02:00
version = "3.5.1";
2017-08-30 23:05:43 +02:00
src = fetchurl {
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
2022-03-29 10:40:37 +02:00
sha256 = "3fb5de878b6470dc8ef65ce22f2709cb8baecb5f16d89497dfaa33a0f33f7920";
2017-08-30 23:05:43 +02:00
};
buildCommand = ''
mkdir -p "$out"/webapps/
ln -s ${src} "$out"/webapps/gerrit-${version}.war
2017-08-30 23:05:43 +02: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"
];
};
meta = with lib; {
2019-09-05 17:50:03 +02:00
homepage = "https://www.gerritcodereview.com/index.md";
2017-08-30 23:05:43 +02:00
license = licenses.asl20;
description = "A web based code review and repository management for the git version control system";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
2020-07-13 17:41:32 +02:00
maintainers = with maintainers; [ flokli jammerful zimbatm ];
2017-08-30 23:05:43 +02:00
platforms = platforms.unix;
};
}