diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2019-01-16 12:52:50 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2019-01-16 13:00:47 +0100 |
commit | c327693407c5a80ce02e8e6685a06bebb7ad6aee (patch) | |
tree | 3394d32faac35e9b3a890903802c3abfbba2ea68 /pkgs/tools/networking/dnsperf | |
parent | 9e1b5f1115b5ae337129dfc5c97736d15c45d673 (diff) |
dnsperf: fixup build with new bind version
Diffstat (limited to 'pkgs/tools/networking/dnsperf')
-rw-r--r-- | pkgs/tools/networking/dnsperf/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/networking/dnsperf/default.nix b/pkgs/tools/networking/dnsperf/default.nix index 9d6b85092efce..c4849c053227b 100644 --- a/pkgs/tools/networking/dnsperf/default.nix +++ b/pkgs/tools/networking/dnsperf/default.nix @@ -10,6 +10,15 @@ stdenv.mkDerivation rec { sha256 = "03kfc65s5a9csa5i7xjsv0psq144k8d9yw7xlny61bg1h2kg1db4"; }; + # Almost the same as https://github.com/DNS-OARC/dnsperf/pull/12 + postPatch = '' + find . -name '*.h' -o -name '*.c' | xargs sed \ + -e 's/\<isc_boolean_t\>/bool/g' -e 's/\<ISC_TRUE\>/true/g' -e 's/\<ISC_FALSE\>/false/g' \ + -e 's/\<isc_uint/uint/g' -e 's/\<ISC_UINT/UINT/g' -e 's/\<isc_int/int/g' \ + -e 's/\<ISC_PRINT_QUADFORMAT\>/PRIu64/g' -e 's/\<ISC_TF\>//g' \ + -i -- + ''; + outputs = [ "out" "man" "doc" ]; buildInputs = [ bind zlib openssl ] |