Fix libGL.so.1 issue of Matlab 2022a, addresses #4

This commit is contained in:
Doron Behar 2022-04-02 08:36:26 +03:00
parent cb23bb048b
commit 98e56e744c

View file

@ -98,6 +98,9 @@
name = "matlab-shell";
inherit targetPkgs;
runScript = shellHooksCommon + ''
# Needed only for installation from some reason, see:
# https://discourse.nixos.org/t/a-non-nixos-linux-binary-matlab-requires-libgl-so-1-twice/18379/2
export LD_PRELOAD=${pkgs.libglvnd}/lib/libGL.so.1
cat <<EOF
============================
welcome to nix-matlab shell!