dig: add IDN support
This commit is contained in:
parent
1a97f1f94f
commit
a7c6b07478
1 changed files with 24 additions and 9 deletions
|
@ -1,10 +1,24 @@
|
|||
{ config, stdenv, lib, fetchurl, fetchpatch
|
||||
, perl, pkg-config
|
||||
, libcap, libtool, libxml2, openssl, libuv, nghttp2, jemalloc
|
||||
, enablePython ? false, python3
|
||||
, enableGSSAPI ? true, libkrb5
|
||||
, buildPackages, nixosTests
|
||||
, cmocka, tzdata
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchurl
|
||||
, perl
|
||||
, pkg-config
|
||||
, libcap
|
||||
, libidn2
|
||||
, libtool
|
||||
, libxml2
|
||||
, openssl
|
||||
, libuv
|
||||
, nghttp2
|
||||
, jemalloc
|
||||
, enablePython ? false
|
||||
, python3
|
||||
, enableGSSAPI ? true
|
||||
, libkrb5
|
||||
, buildPackages
|
||||
, nixosTests
|
||||
, cmocka
|
||||
, tzdata
|
||||
, gitUpdater
|
||||
}:
|
||||
|
||||
|
@ -24,7 +38,7 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
nativeBuildInputs = [ perl pkg-config ];
|
||||
buildInputs = [ libtool libxml2 openssl libuv nghttp2 jemalloc ]
|
||||
buildInputs = [ libidn2 libtool libxml2 openssl libuv nghttp2 jemalloc ]
|
||||
++ lib.optional stdenv.isLinux libcap
|
||||
++ lib.optional enableGSSAPI libkrb5
|
||||
++ lib.optional enablePython (python3.withPackages (ps: with ps; [ ply ]));
|
||||
|
@ -34,6 +48,7 @@ stdenv.mkDerivation rec {
|
|||
configureFlags = [
|
||||
"--localstatedir=/var"
|
||||
"--without-lmdb"
|
||||
"--with-libidn2"
|
||||
] ++ lib.optional enableGSSAPI "--with-gssapi=${libkrb5.dev}/bin/krb5-config"
|
||||
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "BUILD_CC=$(CC_FOR_BUILD)";
|
||||
|
||||
|
|
Loading…
Reference in a new issue