man-db: make it the default man provider

For now, leave the old implementation under `man-old` attribute.

Small warning: I had a leftover ~/.nix-profile/man from an old package,
which caused man-db's man prefer it and ignore ~/.nix-profile/share/man.
The PATH->MANPATH code just selects the first match for each PATH item.
This commit is contained in:
Vladimír Čunát
2016-05-23 19:50:25 +02:00
parent f8cc92fd6d
commit b9df4311dc
3 changed files with 5 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ with lib;
config = mkIf config.programs.man.enable {
environment.systemPackages = [ pkgs.man ];
environment.systemPackages = [ pkgs.man-db ];
environment.pathsToLink = [ "/share/man" ];