ipv6calc: make geoip and geolite-legacy "optional"

This commit is contained in:
Tobias Geerinckx-Rice 2015-07-22 18:15:16 +02:00
parent 0c00290fbb
commit 72fd2a609c

@ -21,14 +21,16 @@ stdenv.mkDerivation rec {
done
'';
configureFlags = ''
--disable-bundled-getopt
--disable-bundled-md5
--disable-dynamic-load
--enable-shared
--enable-geoip
--with-geoip-db=${geolite-legacy}/share/GeoIP
'';
configureFlags = [
"--disable-bundled-getopt"
"--disable-bundled-md5"
"--disable-dynamic-load"
"--enable-shared"
] ++ stdenv.lib.optional (geoip != null ) [
"--enable-geoip"
] ++ stdenv.lib.optional (geolite-legacy != null) [
"--with-geoip-db=${geolite-legacy}/share/GeoIP"
];
enableParallelBuilding = true;