From ce4f1f828366a488003e52369f5515bfb789b0ae Mon Sep 17 00:00:00 2001 From: Ram Kromberg Date: Mon, 12 Sep 2016 02:12:14 +0300 Subject: [PATCH] mandb: fix apropos --- pkgs/tools/misc/man-db/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/misc/man-db/default.nix b/pkgs/tools/misc/man-db/default.nix index 9724278b6087..b049e0706e9a 100644 --- a/pkgs/tools/misc/man-db/default.nix +++ b/pkgs/tools/misc/man-db/default.nix @@ -15,6 +15,12 @@ stdenv.mkDerivation rec { buildInputs = [ libpipeline db groff ]; troff="${groff}/bin/groff"; + postPatch = '' + substituteInPlace src/man_db.conf.in \ + --replace "/usr/local/share" "/run/current-system/sw/share" \ + --replace "/usr/share" "/run/current-system/sw/share" + ''; + configureFlags = [ "--disable-setuid" "--localstatedir=/var"