chore(nix): define LD_LIBRARY_PATH outside shellHook

For consistency with other environment variables defined in the same
file.
This commit is contained in:
yvt 2021-10-16 01:21:16 +09:00
parent e61d7f808a
commit e4cd5a1c96

View file

@ -30,9 +30,10 @@ clangStdenv.mkDerivation rec {
# Enable colored cargo and rustc output
TERMINFO = "${ncurses.out}/share/terminfo";
# Fix missing libraries errors (those libraries aren't linked against, so we need to dynamically supply them)
LD_LIBRARY_PATH = lib.makeLibraryPath [ xorg.libXcursor xorg.libXrandr xorg.libXi libxkbcommon ];
shellHook = ''
# Fix missing libraries errors (those libraries aren't linked against, so we need to dynamically supply them)
export LD_LIBRARY_PATH=${lib.makeLibraryPath [ xorg.libXcursor xorg.libXrandr xorg.libXi libxkbcommon ]}
# Fix invalid option errors during linking
# https://github.com/mozilla/nixpkgs-mozilla/commit/c72ff151a3e25f14182569679ed4cd22ef352328
unset AS