Merge pull request #205981 from nagy/coredns

coredns: install man pages
This commit is contained in:
Jörg Thalheim 2023-01-16 00:13:10 +01:00 committed by GitHub
commit 8322251920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,7 @@
, stdenv
, buildGoModule
, fetchFromGitHub
, installShellFiles
}:
buildGoModule rec {
@ -17,6 +18,10 @@ buildGoModule rec {
vendorSha256 = "sha256-nyMeKmGoypDrpZHYHGjhRnjgC3tbOX/dlj96pnXrdLE=";
nativeBuildInputs = [ installShellFiles ];
outputs = [ "out" "man" ];
postPatch = ''
substituteInPlace test/file_cname_proxy_test.go \
--replace "TestZoneExternalCNAMELookupWithProxy" \
@ -29,6 +34,10 @@ buildGoModule rec {
sed -E -i 's/\blo\b/lo0/' plugin/bind/setup_test.go
'';
postInstall = ''
installManPage man/*
'';
meta = with lib; {
homepage = "https://coredns.io";
description = "A DNS server that runs middleware";