diff --git a/machines/kcnhub/packages/matlab.nix b/machines/kcnhub/packages/matlab.nix index 7630216..42d7d4a 100644 --- a/machines/kcnhub/packages/matlab.nix +++ b/machines/kcnhub/packages/matlab.nix @@ -59,7 +59,9 @@ # matlab's installers) matlab-env = pkgs.buildFHSUserEnv { name = "matlab-env"; - targetPkgs = (ps: nix-matlab.targetPkgs ps); + targetPkgs = (ps: (nix-matlab.targetPkgs ps) ++ (with ps; [ + linux-pam + ])); }; # Script used to get the most up to date version of the desired MATLAB @@ -126,7 +128,7 @@ ''; runScript = pkgs.writeScript "matlab-run-${f}-script" '' export QT_QPA_PLATFORM=xcb - ${MATLAB_INSTALL_DIR}/bin/${f} "$@" + "$MATLAB_INSTALL_DIR/bin/${f}" "$@" ''; }; @@ -144,6 +146,7 @@ in { environment.systemPackages =(with pkgs; [ matlab-update-script matlab + matlab-env matlab-mex octaveFull ]);