Revert System MATLAB (Almost Ready)

master
David Crompton 2024-01-17 17:23:08 -05:00
parent f5d3abb2b3
commit 9e7069e2d9
1 changed files with 0 additions and 33 deletions

View File

@ -43,41 +43,8 @@
exec bash exec bash
''); '');
}; };
matlab-mpm = pkgs.stdenv.mkDerivation rec {
pname = "matlab";
version = "2023b-u6";
mpm-version = "2023.12.1";
src = pkgs.fetchurl {
url = "https://ssd.mathworks.com/supportfiles/downloads/mpm/${version}/glnxa64/mpm";
hash = "sha256-NlfPLDnpRIaKLLuIZAudnFHBKL04gzmypzp98QOa6+g=";
};
buildInputs = with pkgs; [
unzip
];
unpackPhase = ''
cp $src ./mpm
chmod +x ./mpm
cp ${./matlab/install_file.txt} ./install_file.txt
'';
patchPhase = ''
subtituteAllInPlace ./install_file.txt
'';
installPhase = ''
./mpm install --inputfile ./install_file.txt
'';
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = pkgs.lib.fakeSha256;
};
in { in {
environment.systemPackages = (with nix-matlab.packages.x86_64-linux; [ environment.systemPackages = (with nix-matlab.packages.x86_64-linux; [
matlab-mpm
matlab matlab
matlab-shell matlab-shell
matlab-server matlab-server