lorri icon indicating copy to clipboard operation
lorri copied to clipboard

add the `buildInputs` man pages to MANPATH

Open Profpatsch opened this issue 3 years ago • 2 comments

https://github.com/NixOS/nix/pull/4702 is being blocked by Eelco, but having manpages available in your project environments is a really good thing.

We should make an effort to add them into the lorri environment.

Profpatsch avatar Jun 16 '21 09:06 Profpatsch

There are more or less three approaches to this left which seem to be the preferred outcome for upstream nix (since they don't involve upstream nix changing anything, but they won't work for the nixUnstable CLI):

  • Add some specific lorri specific workaround for this: meh
  • Make mkShell populate MANPATH: while this seems sensible, it'll likely not fix the problem for a lot of development environments which aren't based on mkShell
  • Add a setup hook to stdenv which sets up MANPATH: This would solve the problem in lorri and nix-shell completely. However, I'm still convinced that this is a terrible hack since it is completely orthogonal to the purpose of stdenv — nobody needs MANPATH in a build environment

sternenseemann avatar Jun 16 '21 09:06 sternenseemann

  • Add some specific lorri specific workaround for this: meh

  • Make mkShell populate MANPATH: while this seems sensible, it'll likely not fix the problem for a lot of development environments which aren't based on mkShell

Eventuall I’d like a dev-shell DSL that we recommend people use, which lorri supports. But for now I think we need to work with what we have.

Profpatsch avatar Jun 16 '21 09:06 Profpatsch