summary refs log tree commit diff
path: root/pkgs/tools/misc/man/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/man/default.nix')
-rw-r--r--pkgs/tools/misc/man/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/misc/man/default.nix b/pkgs/tools/misc/man/default.nix
index 0e4568c2cd3f3..12e888813fb95 100644
--- a/pkgs/tools/misc/man/default.nix
+++ b/pkgs/tools/misc/man/default.nix
@@ -17,6 +17,11 @@ stdenv.mkDerivation rec {
   patches = [
     # Search in "share/man" relative to each path in $PATH (in addition to "man").
     ./share.patch
+
+    # Prefer /etc/man.conf over $out/lib/man.conf.  Man only reads the
+    # first file that exists, so this is necessary to allow the
+    # builtin config to be overriden.
+    ./conf.patch
   ];
 
   preConfigure = ''