devShell: Fix errors with environment variables
Previous code assumed that $MANPATH always exists
Change-Id: I5a4d012045ba6ff9086373b3f46a75d82285d393
This commit is contained in:
parent
fa92f41a18
commit
3dced96741
|
@ -493,9 +493,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PATH=$prefix/bin:$PATH
|
PATH=$prefix/bin''${PATH:+:''${PATH}}
|
||||||
unset PYTHONPATH
|
unset PYTHONPATH
|
||||||
export MANPATH=$out/share/man:$MANPATH
|
export MANPATH=$out/share/man''${MANPATH:+:''${MANPATH}}
|
||||||
|
|
||||||
# Make bash completion work.
|
# Make bash completion work.
|
||||||
XDG_DATA_DIRS+=:$out/share
|
XDG_DATA_DIRS+=:$out/share
|
||||||
|
|
Loading…
Reference in a new issue