summary refs log tree commit diff
path: root/pkgs/tools/misc/man-db
diff options
context:
space:
mode:
authorRam Kromberg <ramkromberg@mail.com>2016-09-12 02:12:14 +0300
committerRam Kromberg <ramkromberg@mail.com>2016-09-12 02:12:44 +0300
commitce4f1f828366a488003e52369f5515bfb789b0ae (patch)
tree936e089e69d89b8712fe4544cb3b584d3a0ba49b /pkgs/tools/misc/man-db
parent300adc84580c7fdc35112052f168aa714eca977d (diff)
downloadnixpkgs-ce4f1f828366a488003e52369f5515bfb789b0ae.tar
nixpkgs-ce4f1f828366a488003e52369f5515bfb789b0ae.tar.gz
nixpkgs-ce4f1f828366a488003e52369f5515bfb789b0ae.tar.bz2
nixpkgs-ce4f1f828366a488003e52369f5515bfb789b0ae.tar.lz
nixpkgs-ce4f1f828366a488003e52369f5515bfb789b0ae.tar.xz
nixpkgs-ce4f1f828366a488003e52369f5515bfb789b0ae.tar.zst
nixpkgs-ce4f1f828366a488003e52369f5515bfb789b0ae.zip
mandb: fix apropos
Diffstat (limited to 'pkgs/tools/misc/man-db')
-rw-r--r--pkgs/tools/misc/man-db/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/misc/man-db/default.nix b/pkgs/tools/misc/man-db/default.nix
index 9724278b608..b049e0706e9 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"