diff options
author | piegames <git@piegames.de> | 2024-07-10 09:23:00 +0200 |
---|---|---|
committer | piegames <git@piegames.de> | 2024-07-10 14:22:47 +0200 |
commit | 3dced96741816db01f9990e0884224d38ee58390 (patch) | |
tree | d26c0c66976f3f71656e7faad673f62acfae37d5 /package.nix | |
parent | fa92f41a18660be33e7f15d538ae446ed33e4b71 (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.nix | 4 |
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 |