3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/gerrit/default.nix

43 lines
1.1 KiB
Nix
Raw Normal View History

2017-08-30 22:05:43 +01:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "gerrit";
2020-04-09 18:46:49 +01:00
version = "3.1.4";
2017-08-30 22:05:43 +01:00
src = fetchurl {
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
2020-04-09 18:46:49 +01:00
sha256 = "1pi4252hsx1zcmarzzimds1pw34x3fwi96nh9xvxqvv2cjjlr2c1";
2017-08-30 22:05:43 +01:00
};
buildCommand = ''
mkdir -p "$out"/webapps/
ln -s ${src} "$out"/webapps/gerrit-${version}.war
2017-08-30 22:05:43 +01: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"
];
};
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;
};
}