KCNHUB: Matlab: Add Support for PAM-auth

master
David Crompton 2024-07-18 19:07:48 -04:00
parent 703675d218
commit bda6871fc7
1 changed files with 5 additions and 2 deletions

View File

@ -59,7 +59,9 @@
# matlab's installers) # matlab's installers)
matlab-env = pkgs.buildFHSUserEnv { matlab-env = pkgs.buildFHSUserEnv {
name = "matlab-env"; 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 # 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" '' runScript = pkgs.writeScript "matlab-run-${f}-script" ''
export QT_QPA_PLATFORM=xcb export QT_QPA_PLATFORM=xcb
${MATLAB_INSTALL_DIR}/bin/${f} "$@" "$MATLAB_INSTALL_DIR/bin/${f}" "$@"
''; '';
}; };
@ -144,6 +146,7 @@ in {
environment.systemPackages =(with pkgs; [ environment.systemPackages =(with pkgs; [
matlab-update-script matlab-update-script
matlab matlab
matlab-env
matlab-mex matlab-mex
octaveFull octaveFull
]); ]);