-
Notifications
You must be signed in to change notification settings - Fork 11
/
shell.nix
35 lines (32 loc) · 961 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
let
jupyterLib = builtins.fetchGit {
url = https://github.com/tweag/jupyterWith;
rev = "cd0743170d9da4a9e59fad8daf17dd4769bd2158";
};
nixpkgsPath = jupyterLib + "/nix";
haskellOverlay = import ./haskell-overlay.nix;
pkgs = import nixpkgsPath {overlays = [ haskellOverlay ]; config={allowUnfree=true; allowBroken=true;};};
jupyter = import jupyterLib {pkgs=pkgs;};
ihaskellWithPackages = jupyter.kernels.iHaskellWith {
#extraIHaskellFlags = "--debug";
haskellPackages = pkgs.haskell.packages.ghc865;
name = "monad-bayes";
packages = p: with p; [
monad-bayes
hmatrix
hvega
statistics
vector
ihaskell-hvega
formatting
foldl
histogram-fill
];
extraIHaskellFlags = "--codemirror Haskell";
};
jupyterlabWithKernels =
jupyter.jupyterlabWith {
kernels = [ ihaskellWithPackages ];
};
in
jupyterlabWithKernels.env