mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 06:14:26 +03:00
ee74e1a055
(cherry picked from commit 4fa25ee93a
)
Signed-off-by: Domen Kožar <domen@dev.si>
29 lines
747 B
Nix
29 lines
747 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "solr-${version}";
|
|
version = "4.10.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://apache/lucene/solr/${version}/solr-${version}.tgz";
|
|
sha256 = "1dp269jka4q62qhv47j91wsrsnbxfn23lsx6qcycbijrlyh28w5c";
|
|
};
|
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/lib
|
|
cp dist/${name}.war $out/lib/solr.war
|
|
cp -r example/lib/ext $out/lib/ext
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://lucene.apache.org/solr/";
|
|
description = "Open source enterprise search platform from the Apache Lucene project";
|
|
license = licenses.asl20;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.rickynils maintainers.iElectric ];
|
|
};
|
|
|
|
}
|