Properly fix libGL.so.1 issue - thanks to comment from #4

This commit is contained in:
Doron Behar 2022-04-02 09:25:30 +03:00
parent be0d56a218
commit 27343e2e62
2 changed files with 3 additions and 3 deletions

View file

@ -48,6 +48,9 @@ pkgs:
# Keyboard input may not work in simulink otherwise
libxkbcommon
xkeyboard_config
# Needed since 2022a
libglvnd
]) ++ (with pkgs.xorg; [
libSM
libX11

View file

@ -131,9 +131,6 @@
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!