1 { lib, stdenv, fetchurl, nixosTests }:
3 stdenv.mkDerivation rec {
8 url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
9 hash = "sha256-gWONjpn/YrSHtabacI+7Ao9pGeqcialRaaca2ct5oDM=";
13 mkdir -p "$out"/webapps/
14 ln -s ${src} "$out"/webapps/gerrit-${version}.war
18 # A list of plugins that are part of the gerrit.war file.
19 # Use `java -jar gerrit.war ls | grep plugins/` to generate that list.
22 "commit-message-length-validator"
34 inherit (nixosTests) gerrit;
39 homepage = "https://www.gerritcodereview.com/index.md";
40 license = licenses.asl20;
41 description = "Web based code review and repository management for the git version control system";
42 sourceProvenance = with sourceTypes; [ binaryBytecode ];
43 maintainers = with maintainers; [ flokli zimbatm ];
44 platforms = platforms.unix;