-
Notifications
You must be signed in to change notification settings - Fork 0
/
shell.nix
42 lines (35 loc) · 879 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ pkgs ? import ./nix/pkgs.nix
, matplotlibrc ? import (import ./nix/sources.nix).matplotlibrc { inherit pkgs; } }:
with pkgs; {
production = mkShell {
buildInputs = [
# The custom-linked python
(import ./default.nix { meep = qchem.python3.pkgs.meep; })
which
git
# SSH is required for running with MPI
openssh
matplotlibrc
];
additionalShellHook = ''
export MATPLOTLIBRC=${matplotlibrc}
'';
};
# This allows for a local editable(!) dev install
dev = pkgs.python3Packages.callPackage ./nix/plasmonic-meep.nix {
meep = qchem.python3.pkgs.meep;
additionalDevDeps = with python3Packages; [
mpi
openssh
ipykernel
black
pylint
# ipympl
pytest
matplotlibrc
];
additionalShellHook = ''
export MATPLOTLIBRC=${matplotlibrc}
'';
};
}