djbdns: fix root server list at build time
as suggested by @peterhoeg in https://github.com/NixOS/nixpkgs/commit/1b7e5eaa79241080eac2a0b79883a17c9e5f4731#commitcomment-24560631 fixes #30379
This commit is contained in:
committed by
Joerg Thalheim
parent
6ec6af4625
commit
bbec429f7a
@@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, glibc } :
|
||||
{ stdenv, fetchurl, glibc, dns-root-data } :
|
||||
|
||||
let
|
||||
version = "1.05";
|
||||
@@ -23,6 +23,8 @@ stdenv.mkDerivation {
|
||||
postPatch = ''
|
||||
echo gcc -O2 -include ${glibc.dev}/include/errno.h > conf-cc
|
||||
echo $out > conf-home
|
||||
# djbdns ships with an outdated list of root servers
|
||||
awk '/^.?.ROOT-SERVERS.NET/ { print $4 }' ${dns-root-data}/root.hints > dnsroots.global
|
||||
sed -i "s|/etc/dnsroots.global|$out/etc/dnsroots.global|" dnscache-conf.c
|
||||
'';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user