2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre, makeWrapper, nixosTests }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "solr";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "8.6.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/lucene/${pname}/${version}/${pname}-${version}.tgz";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "0mbbmamajamxzcvdlrzx9wmv26kg9nhg9bzazk176dhhx3rjajf2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out $out/bin
|
|
|
|
|
|
|
|
cp -r bin/solr bin/post $out/bin/
|
|
|
|
cp -r contrib $out/
|
|
|
|
cp -r dist $out/
|
|
|
|
cp -r example $out/
|
|
|
|
cp -r server $out/
|
|
|
|
|
|
|
|
wrapProgram $out/bin/solr --set JAVA_HOME "${jre}"
|
|
|
|
wrapProgram $out/bin/post --set JAVA_HOME "${jre}"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) solr;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://lucene.apache.org/solr/";
|
|
|
|
description = "Open source enterprise search platform from the Apache Lucene project";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
2021-03-09 03:18:52 +00:00
|
|
|
maintainers = with maintainers; [ aanderse ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|