[Nix-dev] Installing manpages

Freddy Rietdijk freddyrietdijk at fridh.nl
Thu May 25 12:48:19 CEST 2017


Function for getting all manpages of all pkgs:

```
manpkgs = pkgs: builtins.map (x: lib.getOutput "man" x) pkgs;
```
https://github.com/NixOS/nixpkgs/blob/5989515b9410f3d557e1aba037325a218f4338f5/lib/attrsets.nix#L450

You might want to concatenate the generated list to `pkgs`.

On Thu, May 25, 2017 at 12:31 PM, Sergey Mironov <grrwlf at gmail.com> wrote:

> Hi! Is there a possibility to install manpages for all packages I have
> in NixOS. Possibly, a combinator which would convert a list of `with
> pkgs; [foo bar]` to `with pkgs; [foo foo.man bar bar.man]` with checks
> of .man existing ?
>
> Regards,
> Sergey
>
>
> PS
> Sorry If I am missing the topic in documentation
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> https://mailman.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.science.uu.nl/pipermail/nix-dev/attachments/20170525/ae13cf44/attachment.html>


More information about the nix-dev mailing list