Merge pull request #174618 from risicle/ris-coredns-darwin-fix

coredns: fix tests on darwin

authored by Robert Scott and committed by GitHub 4f6e9865 af02d617

+8 -1
+8 -1
pkgs/servers/dns/coredns/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub }: 2 3 buildGoModule rec { 4 pname = "coredns"; ··· 20 21 substituteInPlace test/readme_test.go \ 22 --replace "TestReadme" "SkipReadme" 23 ''; 24 25 meta = with lib; {
··· 1 + { lib 2 + , stdenv 3 + , buildGoModule 4 + , fetchFromGitHub 5 + }: 6 7 buildGoModule rec { 8 pname = "coredns"; ··· 24 25 substituteInPlace test/readme_test.go \ 26 --replace "TestReadme" "SkipReadme" 27 + '' + lib.optionalString stdenv.isDarwin '' 28 + # loopback interface is lo0 on macos 29 + sed -E -i 's/\blo\b/lo0/' plugin/bind/setup_test.go 30 ''; 31 32 meta = with lib; {