ipv6calc: make geoip and geolite-legacy "optional"
This commit is contained in:
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user