aboutsummaryrefslogtreecommitdiff
path: root/package.nix
diff options
context:
space:
mode:
authorpiegames <git@piegames.de>2024-07-10 09:23:00 +0200
committerpiegames <git@piegames.de>2024-07-10 14:22:47 +0200
commit3dced96741816db01f9990e0884224d38ee58390 (patch)
treed26c0c66976f3f71656e7faad673f62acfae37d5 /package.nix
parentfa92f41a18660be33e7f15d538ae446ed33e4b71 (diff)
devShell: Fix errors with environment variables
Previous code assumed that $MANPATH always exists Change-Id: I5a4d012045ba6ff9086373b3f46a75d82285d393
Diffstat (limited to 'package.nix')
-rw-r--r--package.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/package.nix b/package.nix
index f70cbb3b1..d62e1e719 100644
--- a/package.nix
+++ b/package.nix
@@ -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