mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
31 lines
498 B
Nix
31 lines
498 B
Nix
|
{ 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" ];
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|