nixpkgs/pkgs/applications/version-management/gerrit/default.nix

29 lines
833 B
Nix
Raw Normal View History

2017-08-30 22:05:43 +01:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "gerrit-${version}";
2017-12-13 15:42:33 +00:00
version = "2.14.6";
2017-08-30 22:05:43 +01:00
src = fetchurl {
url = "https://gerrit-releases.storage.googleapis.com/gerrit-${version}.war";
2017-12-13 15:42:33 +00:00
sha256 = "0fsqwfsnyb4nbxgb1i1mp0vshl0mk8bwqlddzqr9x2v99mbca28q";
2017-08-30 22:05:43 +01:00
};
outputHashAlgo = "sha256";
outputHashMode = "recursive";
2017-12-13 15:42:33 +00:00
outputHash = "1qrmvqqnlbabqz4yx06vi030ci12v0063iq2palxmbj3whrzv9la";
2017-08-30 22:05:43 +01:00
buildCommand = ''
mkdir -p "$out"/webapps/
ln -s ${src} "$out"/webapps/gerrit-${version}.war
2017-08-30 22:05:43 +01:00
'';
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;
};
}