diff --git a/pkgs/applications/version-management/gerrit/default.nix b/pkgs/applications/version-management/gerrit/default.nix new file mode 100644 index 000000000000..31035b2183ff --- /dev/null +++ b/pkgs/applications/version-management/gerrit/default.nix @@ -0,0 +1,24 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "gerrit-${version}"; + version = "2.14.3"; + + src = fetchurl { + url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war"; + sha256 = "db602d06b11bfa81f1cb016c4717a99699828eda08afb2caa504175a2ea4b9c3"; + }; + + buildCommand = '' + mkdir -p "$out"/webapps + cp "${src}" "$out"/webapps/gerrit-${version}.war + ''; + + meta = with stdenv.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"; + maintainers = with maintainers; [ jammerful ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d729d57d74a3..dcbf282a30aa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2141,6 +2141,8 @@ with pkgs; genimage = callPackage ../tools/filesystems/genimage { }; + gerrit = callPackage ../applications/version-management/gerrit { }; + geteltorito = callPackage ../tools/misc/geteltorito { }; getmail = callPackage ../tools/networking/getmail { };