1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

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

View file

@ -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;