diff --git a/pkgs/tools/networking/dnsperf/default.nix b/pkgs/tools/networking/dnsperf/default.nix index 9d6b85092efc..c4849c053227 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/\/bool/g' -e 's/\/true/g' -e 's/\/false/g' \ + -e 's/\/PRIu64/g' -e 's/\//g' \ + -i -- + ''; + outputs = [ "out" "man" "doc" ]; buildInputs = [ bind zlib openssl ]