nixpkgs/pkgs/by-name/ge/gerrit/package.nix
Felix Singer 5282d303b4 gerrit: 3.10.0 -> 3.10.1
Changelog https://www.gerritcodereview.com/3.10.html#3101

Signed-off-by: Felix Singer <felixsinger@posteo.net>
2024-08-10 13:07:58 +02:00

44 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "gerrit";
version = "3.10.1";
src = fetchurl {
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
hash = "sha256-gWONjpn/YrSHtabacI+7Ao9pGeqcialRaaca2ct5oDM=";
};
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 = "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;
};
}