devShell: Fix errors with environment variables

Previous code assumed that $MANPATH always exists

Change-Id: I5a4d012045ba6ff9086373b3f46a75d82285d393
This commit is contained in:
piegames 2024-07-10 09:23:00 +02:00
parent fa92f41a18
commit 3dced96741

View file

@ -493,9 +493,9 @@ stdenv.mkDerivation (finalAttrs: {
return
fi
PATH=$prefix/bin:$PATH
PATH=$prefix/bin''${PATH:+:''${PATH}}
unset PYTHONPATH
export MANPATH=$out/share/man:$MANPATH
export MANPATH=$out/share/man''${MANPATH:+:''${MANPATH}}
# Make bash completion work.
XDG_DATA_DIRS+=:$out/share