Created
June 3, 2017 07:57
-
-
Save ericsagnes/a28aab3c3f9ccdb80f4fe2158689464a to your computer and use it in GitHub Desktop.
Solr 6.5.1 nix expression
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
solr = callPackage ../servers/search/solr { java = jre; }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchurl, lsof, makeWrapper, gawk, procps | |
, java }: | |
stdenv.mkDerivation rec { | |
name = "solr-${version}"; | |
version = "6.5.1"; | |
src = fetchurl { | |
url = "mirror://apache/lucene/solr/${version}/solr-${version}.tgz"; | |
sha256 = "1lymbf474b2ks5md7hqpvxxb0pdz6dyp396hvnl4gs6mfi27sskw"; | |
}; | |
dontBuild = true; | |
nativeBuildInputs = [ makeWrapper ]; | |
installPhase = '' | |
mkdir -p $out | |
cp -R * $out | |
''; | |
preFixup = '' | |
wrapProgram $out/bin/solr \ | |
--set JAVA_HOME "${java}" \ | |
--prefix PATH : ${lsof}/bin:${gawk}/bin:${procps}/bin | |
''; | |
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.domenkozar ]; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment