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,8 +48,9 @@ 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)";
|
||||
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "BUILD_CC=$(CC_FOR_BUILD)";
|
||||
|
||||
postInstall = ''
|
||||
moveToOutput bin/bind9-config $dev
|
||||
|
|
Loading…
Reference in a new issue