9 , geolite-legacy ? null
12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
20 sha256 = "sha256-p/er/Ehyu7PqmikMIKPQBQ0/F81d8iiKdmLXLz+8pus=";
33 patchShebangs *.sh */*.sh
34 for i in {,databases/}lib/Makefile.in; do
35 substituteInPlace $i --replace "/sbin/ldconfig" "ldconfig"
40 "--prefix=${placeholder "out"}"
41 "--libdir=${placeholder "out"}/lib"
42 "--disable-bundled-getopt"
43 "--disable-bundled-md5"
44 "--disable-dynamic-load"
46 ] ++ lib.optionals (libmaxminddb != null) [
48 ] ++ lib.optionals (geolite-legacy != null) [
49 "--with-geoip-db=${geolite-legacy}/share/GeoIP"
50 ] ++ lib.optionals (ip2location-c != null) [
51 "--enable-ip2location"
54 enableParallelBuilding = true;
57 description = "Calculate/manipulate (not only) IPv6 addresses";
59 ipv6calc is a small utility to manipulate (not only) IPv6 addresses and
60 is able to do other tricky things. Intentions were convering a given
61 IPv6 address into compressed format, convering a given IPv6 address into
62 the same format like shown in /proc/net/if_inet6 and (because it was not
63 difficult) migrating the Perl program ip6_int into.
64 Now only one utiltity is needed to do a lot.
66 homepage = "http://www.deepspace6.net/projects/ipv6calc.html";
67 license = licenses.gpl2Only;
68 maintainers = with maintainers; [ ];
69 platforms = platforms.linux;