coredns: install man pages

This commit is contained in:
Daniel Nagy 2022-12-13 17:00:00 +01:00
parent aae24b673a
commit 1f299ec958
No known key found for this signature in database
GPG key ID: 1B8E8DCB576FB671

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";