mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gerrit";
|
|
version = "3.6.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
|
|
sha256 = "sha256-/OckQD6r9WSMx9Vt44eFpzsacH6VMa6NJX6sj2HBQSs=";
|
|
};
|
|
|
|
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"
|
|
];
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.gerritcodereview.com/index.md";
|
|
license = licenses.asl20;
|
|
description = "A web based code review and repository management for the git version control system";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
maintainers = with maintainers; [ flokli jammerful zimbatm ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|