nixos/elasticsearch: fix evaluation on systems without unfree set

This commit is contained in:
Jörg Thalheim 2018-08-03 15:03:53 +01:00
parent d50253237e
commit c9b41aa81f

View File

@ -5,7 +5,7 @@ with lib;
let
cfg = config.services.elasticsearch;
es6 = builtins.compareVersions (builtins.parseDrvName cfg.package.name).version "6" >= 0;
es6 = builtins.compareVersions cfg.package.version "6" >= 0;
esConfig = ''
network.host: ${cfg.listenAddress}