From f84997cbefb2f2dd99e48f0ad39f747ed83d69e9 Mon Sep 17 00:00:00 2001 From: Alois Wohlschlager Date: Tue, 6 Aug 2024 17:13:06 +0200 Subject: [PATCH] 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 --- package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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