aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlois Wohlschlager <alois1@gmx-topmail.de>2024-08-06 17:13:06 +0200
committerAlois Wohlschlager <alois1@gmx-topmail.de>2024-08-06 17:18:05 +0200
commitf84997cbefb2f2dd99e48f0ad39f747ed83d69e9 (patch)
tree2bf300abb9a78941165b7d9d29775b95b30c3a08
parent66469fc281fc4abb3284574f77a8051fee8116b9 (diff)
package: don't hide system-wide manual pages
When MANPATH is unset or contains an empty component, a reasonable default is used. Previously (after 3dced96741816db01f9990e0884224d38ee58390), when MANPATH was unset, the shell hook would only place a location containing the Lix manual pages there, and system-wide manual pages would become unavailable in the development shell, which is undesired. Fix the issue by including an empty component in this case. Change-Id: Ib3c67a831d709fe2a87520e15917eebb59397bd1
-rw-r--r--package.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/package.nix b/package.nix
index 7ebe2721b..0f006fef4 100644
--- a/package.nix
+++ b/package.nix
@@ -502,7 +502,7 @@ stdenv.mkDerivation (finalAttrs: {
PATH=$prefix/bin''${PATH:+:''${PATH}}
unset PYTHONPATH
- export MANPATH=$out/share/man''${MANPATH:+:''${MANPATH}}
+ export MANPATH=$out/share/man:''${MANPATH:-}
# Make bash completion work.
XDG_DATA_DIRS+=:$out/share