Skip to content

Commit

Permalink
supplying dependencies needed for MATLAB in new NixOS; updating README
Browse files Browse the repository at this point in the history
  • Loading branch information
bbarker committed Feb 23, 2021
1 parent 50786b7 commit 692dbd9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ In short:

#### Each time

3. `cd ~/workspace/COBRAContainers/nix/shells/MATLAB`
4. `nix-shell default.nix`
5. `matlab -glnxa64`
1. `nix-shell default.nix`
2. `matlab -glnxa64`

**IMPORTANT Caveat:** If it is necessary to specify the `-glnxa64` option,
the `matlab` shell script should instead be modified to hardcode `ARCH` as
Expand Down
13 changes: 11 additions & 2 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let
src = fetchgit {
url = "https://github.com/opencobra/cobratoolbox.git";
rev = "92518352da3dc1f63b7ef781345786f5cf73034c";
sha256 = "0dsz2046vjxv89imifacv15jkv6avg8xrssig6n7kxsv98i1rm29";
sha256 = "00s94bnjggq2bz4q8fqfwkj65b0nkzqqxp1557ld8iab65dfsvr6";
deepClone = true;
};
buildInputs = [git];
Expand All @@ -37,6 +37,15 @@ haskell.lib.buildStackProject {
makeWrapper
myGurobi
# myMatlab

# needed to run MATLAB (even without display):
ncurses6
pam
xorg.libX11
xorg.libXext
xorg.libXt
xorg.libxcb

zlib
];
libPath = myMatlab.libPath;
Expand All @@ -55,7 +64,7 @@ haskell.lib.buildStackProject {
export GUROBI_HOME="${myGurobi.out}/${gurobiPlatform}"
export GUROBI_PATH="${myGurobi.out}/${gurobiPlatform}"
export GRB_LICENSE_FILE="/opt/gurobi_CAC.lic"
export GRB_LICENSE_FILE="/opt/gurobi.lic"
#
# The single-user license files somewhat annoyingly keeps track of how many
# sockets are present, so we need a different license and license file
Expand Down

0 comments on commit 692dbd9

Please sign in to comment.