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 # Keyboard input may not work in simulink otherwise
libxkbcommon libxkbcommon
xkeyboard_config xkeyboard_config
# Needed since 2022a
libglvnd
]) ++ (with pkgs.xorg; [ ]) ++ (with pkgs.xorg; [
libSM libSM
libX11 libX11

View file

@ -131,9 +131,6 @@
name = "matlab-shell"; name = "matlab-shell";
inherit targetPkgs; inherit targetPkgs;
runScript = shellHooksCommon + '' 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 cat <<EOF
============================ ============================
welcome to nix-matlab shell! welcome to nix-matlab shell!