forked from dapphub/klab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.nix
47 lines (47 loc) · 908 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
42
43
44
45
46
47
let
pkgs = import (builtins.fetchGit rec {
name = "nixpkgs-19.09-${rev}";
url = https://github.com/nixos/nixpkgs;
ref = "nixos-20.03";
# git ls-remote https://github.com/nixos/nixpkgs-channels nixos-20.03
rev = "0bb35152be895abfd1fc743b42f1c4e56ae71906";
}) {};
in
pkgs.stdenv.mkDerivation {
passthru = { inherit pkgs; };
name = "klab-env";
buildInputs = with pkgs; [
autoconf
bc
flex
utillinux
gcc
getopt
git
gmp
gnumake
jq
maven
nix
mpfr
ncurses
nodejs-10_x
opam
openjdk8
pandoc
parallel
pkgconfig
python
python3
time
unzip
wget
z3
zstd
];
shellHook = ''
export PATH=${toString ./node_modules/.bin}:${toString ./bin}:$PATH
export KLAB_EVMS_PATH="''${KLAB_EVMS_PATH:-${toString ./evm-semantics}}"
export NODE_OPTIONS="--max-old-space-size=4096"
'';
}