mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 15:34:05 +00:00
ac708d05d2
Release notes: https://www.gerritcodereview.com/3.11.html Signed-off-by: Felix Singer <felixsinger@posteo.net>
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
nixosTests,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gerrit";
|
|
version = "3.11.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
|
|
hash = "sha256-wFUks4yGzO4obPWIIfCgL+/ZF37RDgXKvlOMSFvU5Bk=";
|
|
};
|
|
|
|
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"
|
|
];
|
|
tests = {
|
|
inherit (nixosTests) gerrit;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.gerritcodereview.com/index.md";
|
|
license = licenses.asl20;
|
|
description = "Web based code review and repository management for the git version control system";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
maintainers = with maintainers; [
|
|
flokli
|
|
zimbatm
|
|
];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|