@ -50,6 +50,21 @@ let cfg = config.documentation; in
'' ;
} ;
dev . enable = mkOption {
type = types . bool ;
default = false ;
description = ''
Whether to install documentation targeted at developers .
<itemizedlist>
<listitem> <para> This includes man pages targeted at developers if <option> man . enable < /option > is
set ( this also includes " d e v m a n " outputs ) . < /para > < /listitem >
<listitem> <para> This includes info pages targeted at developers if <option> info . enable < /option >
is set ( this also includes " d e v i n f o " outputs ) . < /para > < /listitem >
<listitem> <para> This includes other pages targeted at developers if <option> doc . enable < /option >
is set ( this also includes " d e v d o c " outputs ) . < /para > < /listitem >
< /itemizedlist >
'' ;
} ;
} ;
@ -60,20 +75,20 @@ let cfg = config.documentation; in
( mkIf cfg . man . enable {
environment . systemPackages = [ pkgs . man-db ] ;
environment . pathsToLink = [ " / s h a r e / m a n " ] ;
environment . extraOutputsToInstall = [ " m a n " ] ;
environment . extraOutputsToInstall = [ " m a n " ] ++ optional cfg . dev . enable [ " d e v m a n " ] ;
} )
( mkIf cfg . info . enable {
environment . systemPackages = [ pkgs . texinfoInteractive ] ;
environment . pathsToLink = [ " / s h a r e / i n f o " ] ;
environment . extraOutputsToInstall = [ " i n f o " ] ;
environment . extraOutputsToInstall = [ " i n f o " ] ++ optional cfg . dev . enable [ " d e v i n f o " ] ;
} )
( mkIf cfg . doc . enable {
# TODO(@oxij): put it here and remove from profiles?
# environment.systemPackages = [ pkgs.w3m ]; # w3m-nox?
environment . pathsToLink = [ " / s h a r e / d o c " ] ;
environment . extraOutputsToInstall = [ " d o c " ] ;
environment . extraOutputsToInstall = [ " d o c " ] ++ optional cfg . dev . enable [ " d e v d o c " ] ;
} )
] ) ;