From 98e56e744cedbcc4c7a7d970199050bc7dce2a7a Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sat, 2 Apr 2022 08:36:26 +0300 Subject: [PATCH] Fix libGL.so.1 issue of Matlab 2022a, addresses #4 --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index af9c2d5..b480ec7 100644 --- a/flake.nix +++ b/flake.nix @@ -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 <