git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.bap: 2.0.0 → 2.1.0
commitafa12b1128d5f4d21bb9916132b0666bc1a1014d authorVincent Laporte <Vincent.Laporte@gmail.com> dateFri 2 Oct 2020, 07:44 (6 years ago) parentc8111ef
3 files changed+12−6
pkgs/development/ocaml-modules/bap/default.nix+10−4 pkgs/top-level/all-packages.nix+1−1 pkgs/top-level/python-packages.nix+1−1
pkgs/development/ocaml-modules/bap/default.nix+10−4
@@ -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
pkgs/top-level/all-packages.nix+1−1
@@ -13302,7 +13302,7 @@ in
1330213302 libbacktrace = callPackage ../development/libraries/libbacktrace { };
1330313303
1330413304 libbap = callPackage ../development/libraries/libbap {
13305− inherit (ocaml-ng.ocamlPackages_4_06) bap ocaml findlib ctypes;
13305+ inherit (ocaml-ng.ocamlPackages_4_07) bap ocaml findlib ctypes;
1330613306 };
1330713307
1330813308 libbass = (callPackage ../development/libraries/audio/libbass { }).bass;
pkgs/top-level/python-packages.nix+1−1
@@ -768,7 +768,7 @@ in {
768768
769769 bandit = callPackage ../development/python-modules/bandit { };
770770
771− bap = callPackage ../development/python-modules/bap { bap = pkgs.ocaml-ng.ocamlPackages_4_06.bap; };
771+ bap = callPackage ../development/python-modules/bap { bap = pkgs.ocaml-ng.ocamlPackages_4_07.bap; };
772772
773773 base58 = callPackage ../development/python-modules/base58 { };
774774