solr: add extraJars option

This commit is contained in:
Domen Kožar 2014-04-03 22:46:45 +02:00
parent 6e086caa8a
commit 52fbaee8d7

View file

@ -23,6 +23,10 @@ let
ln -s ${pkgs.ant}/lib/ant/lib/ant.jar $out/lib/
ln -s ${cfg.solrPackage}/lib/ext/* $out/lib/
ln -s ${pkgs.openjdk}/lib/openjdk/lib/tools.jar $out/lib/
'' + optionalString (cfg.extraJars != []) ''
for f in ${concatStringsSep " " cfg.extraJars}; do
cp $f $out/lib
done
'';
};
@ -54,6 +58,14 @@ in {
'';
};
extraJars = mkOption {
type = types.listOf types.path;
default = [];
description = ''
List of paths pointing to jars. Jars are copied to commonLibFolder to be available to java/solr.
'';
};
log4jConfiguration = mkOption {
type = types.lines;
default = ''