@@ -4,20 +4,25 @@
44 utop, libxml2,
55 ppx_tools_versioned,
66 which, makeWrapper, writeText
7+, z3
78}:
89
9−if stdenv.lib.versionAtLeast core_kernel.version "0.12"
10−then throw "BAP needs core_kernel-0.11 (hence OCaml ≤ 4.06)"
10+if !stdenv.lib.versionAtLeast ocaml.version "4.07"
11+then throw "BAP is not available for OCaml ${ocaml.version}"
12+else
13+
14+if stdenv.lib.versionAtLeast core_kernel.version "0.13"
15+then throw "BAP needs core_kernel-0.12 (hence OCaml 4.07)"
1116else
1217
1318stdenv.mkDerivation rec {
1419 name = "ocaml${ocaml.version}-bap-${version}";
15− version = "2.0.0";
20+ version = "2.1.0";
1621 src = fetchFromGitHub {
1722 owner = "BinaryAnalysisPlatform";
1823 repo = "bap";
1924 rev = "v${version}";
20− sha256 = "0lb9xkfp67wjjqr75p6krivmjra7l5673236v9ny4gp0xi0755bk";
25+ sha256 = "10fkr6p798ad18j4h9bvp9dg4pmjdpv3hmj7k389i0vhqniwi5xq";
2126 };
2227
2328 sigs = fetchurl {
@@ -36,6 +41,7 @@ stdenv.mkDerivation rec {
3641
3742 buildInputs = [ ocaml findlib ocamlbuild ocaml_oasis
3843 llvm ppx_tools_versioned
44+ z3
3945 utop libxml2 ];
4046
4147 propagatedBuildInputs = [ bitstring camlzip cmdliner ppx_jane core_kernel ezjsonm fileutils ocaml_lwt ocamlgraph ocurl re uri zarith piqi parsexp