Make it possible to disable "info"

This commit is contained in:
Eelco Dolstra
2016-09-05 14:16:33 +02:00
parent 5e5df88457
commit ab49ebe6fa
4 changed files with 33 additions and 4 deletions

View File

@@ -0,0 +1,30 @@
{ config, lib, pkgs, ... }:
with lib;
{
options = {
programs.info.enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether to enable info pages and the <command>info</command> command.
'';
};
};
config = mkIf config.programs.info.enable {
environment.systemPackages = [ pkgs.texinfoInteractive ];
environment.pathsToLink = [ "/info" "/share/info" ];
environment.extraOutputsToInstall = [ "info" ];
};
}