Skip to content

Commit

Permalink
Fix direnv error when LD_LIBRARY_PATH is initially unset
Browse files Browse the repository at this point in the history
  • Loading branch information
cydparser committed Aug 6, 2023
1 parent 7d1bf69 commit 9faed6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ghc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ hspkgs.shellFor rec {
# "nix-shell --pure" resets LANG to POSIX, this breaks "make TAGS".
export LANG="en_US.UTF-8"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${lib.makeLibraryPath depsSystem}"
export LD_LIBRARY_PATH="''${LD_LIBRARY_PATH:+''${LD_LIBRARY_PATH}:}${lib.makeLibraryPath depsSystem}"
unset LD
${lib.optionalString withDocs "export FONTCONFIG_FILE=${fonts}"}
Expand Down

0 comments on commit 9faed6a

Please sign in to comment.