2014-03-12 22:07:38 +00:00
|
|
|
{ stdenv, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "solr-${version}";
|
2015-02-04 10:48:13 +00:00
|
|
|
version = "4.10.3";
|
2014-03-12 22:07:38 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/lucene/solr/${version}/solr-${version}.tgz";
|
2015-02-04 10:48:13 +00:00
|
|
|
sha256 = "1dp269jka4q62qhv47j91wsrsnbxfn23lsx6qcycbijrlyh28w5c";
|
2014-03-12 22:07:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib
|
|
|
|
cp dist/${name}.war $out/lib/solr.war
|
|
|
|
cp -r example/lib/ext $out/lib/ext
|
|
|
|
'';
|
|
|
|
|
2015-02-04 10:48:13 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://lucene.apache.org/solr/;
|
2015-02-04 10:48:13 +00:00
|
|
|
description = "Open source enterprise search platform from the Apache Lucene project";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
2016-05-17 12:57:28 +01:00
|
|
|
maintainers = [ maintainers.rickynils maintainers.domenkozar ];
|
2014-03-12 22:07:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|