2015-10-30 13:15:18 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
options = {
|
|
|
|
|
|
|
|
programs.man.enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
description = ''
|
|
|
|
Whether to enable manual pages and the <command>man</command> command.
|
2017-01-24 08:59:54 +00:00
|
|
|
This also includes "man" outputs of all <literal>systemPackages</literal>.
|
2015-10-30 13:15:18 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
config = mkIf config.programs.man.enable {
|
|
|
|
|
2016-05-23 18:50:25 +01:00
|
|
|
environment.systemPackages = [ pkgs.man-db ];
|
2015-10-30 13:15:18 +00:00
|
|
|
|
|
|
|
environment.pathsToLink = [ "/share/man" ];
|
|
|
|
|
2016-03-14 11:19:37 +00:00
|
|
|
environment.extraOutputsToInstall = [ "man" ];
|
2015-10-30 13:15:18 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|