-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
33 lines (28 loc) · 822 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
{pkgs ? import <nixpkgs> { }, ghc ? pkgs.haskell.compiler.ghc822}:
with pkgs;
let
# Uncomment the line below to build HaskellR against a version of R with
# the --enable-strict-barrier configure flag enabled for better memory
# diagnostics.
# R = pkgs.R.override { enableStrictBarrier = true; };
# XXX Workaround https://ghc.haskell.org/trac/ghc/ticket/11042.
libHack = if stdenv.isDarwin then {
DYLD_LIBRARY_PATH = ["${R}/lib/R/lib"];
} else {
LD_LIBRARY_PATH = ["${R}/lib/R"];
};
in
haskell.lib.buildStackProject ({
name = "HaskellR";
inherit ghc;
buildInputs =
[ python36Packages.ipython
python36Packages.jupyter_client
python36Packages.notebook
R
zeromq
zlib
];
LANG = "en_US.UTF-8";
LD_LIBRARY_PATH = ["${R}/lib/R/"];
} // libHack)