From 52fbaee8d753ca87c8d6439256e044633ecabe4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Domen=20Ko=C5=BEar?= Date: Thu, 3 Apr 2014 22:46:45 +0200 Subject: [PATCH] solr: add extraJars option --- nixos/modules/services/search/solr.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/nixos/modules/services/search/solr.nix b/nixos/modules/services/search/solr.nix index a79b1194c80..a1567c535d9 100644 --- a/nixos/modules/services/search/solr.nix +++ b/nixos/modules/services/search/solr.nix @@ -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 = ''