Revert System MATLAB (Almost Ready)
parent
f5d3abb2b3
commit
9e7069e2d9
|
@ -43,41 +43,8 @@
|
|||
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 {
|
||||
environment.systemPackages = (with nix-matlab.packages.x86_64-linux; [
|
||||
matlab-mpm
|
||||
matlab
|
||||
matlab-shell
|
||||
matlab-server
|
||||
|
|
Loading…
Reference in New Issue