Skip to content

Set $MANPATH - #1005

Merged
domenkozar merged 1 commit into
NixOS:masterfrom
rasendubi:manpath
Jul 29, 2016
Merged

domenkozar merged 1 commit into
NixOS:masterfrom
rasendubi:manpath

Conversation

@rasendubi

Copy link
Copy Markdown
Member

Currently, man has issues finding man pages for Nix-installed
application (also, nix-env --help doesn't work). The issue is caused
by custom $MANPATH set by my system. That makes man use it instead of
searching in default location.

Either of next lines workaround the issue:

unset MANPATH

export MANPATH=$HOME/.nix-profile/share/man:$MANPATH

This patch adds the later line to the nix-profile.sh if user has
MANPATH set. (Not clearing MANPATH as that would be disrespect of
user's preferences.)

As a side-effect, host's man might find man pages installed by Nix.

Currently, man has issues finding man pages for Nix-installed
application (also, `nix-env --help` doesn't work). The issue is caused
by custom `$MANPATH` set by my system. That makes man use it instead of
searching in default location.

Either of next lines workaround the issue:
```sh
unset MANPATH

export MANPATH=$HOME/.nix-profile/share/man:$MANPATH
```

This patch adds the later line to the `nix-profile.sh` if user has
`MANPATH` set. (Not clearing `MANPATH` as that would be disrespect of
user's preferences.)

As a side-effect, host's man might find man pages installed by Nix.
@domenkozar

Copy link
Copy Markdown
Member

Duplicates #783

@rasendubi

Copy link
Copy Markdown
Member Author

Oh.. thanks, haven't seen it. Anyway, this one does seem to address comments that were blocking #783.

@domenkozar

Copy link
Copy Markdown
Member

I'm merging this one as it implements the behaviour as discussed in #783. @edolstra feel free to veto :)

@domenkozar
domenkozar merged commit eef7548 into NixOS:master Jul 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants