From 1f299ec958b7f0f8c93faeaee0e5f11fbf8281bd Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Tue, 13 Dec 2022 17:00:00 +0100 Subject: coredns: install man pages --- pkgs/servers/dns/coredns/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'pkgs') diff --git a/pkgs/servers/dns/coredns/default.nix b/pkgs/servers/dns/coredns/default.nix index 10cc86e00ff..bb9ae3ced4d 100644 --- a/pkgs/servers/dns/coredns/default.nix +++ b/pkgs/servers/dns/coredns/default.nix @@ -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"; -- cgit 1.4.1