git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.bap: 2.1.0 → 2.2.0

libbap: 2019-11-15 → 2020-11-25

commit554827b5a7c88d199c83835b154c522844380f9b authorVincent Laporte <Vincent.Laporte@gmail.com> dateMon 22 Feb 2021, 08:57 (6 years ago) parent36aa10c
4 files changed+17−17
pkgs/development/libraries/libbap/default.nix+3−3 pkgs/development/ocaml-modules/bap/default.nix+12−12 pkgs/top-level/all-packages.nix+1−1 pkgs/top-level/python-packages.nix+1−1
pkgs/development/libraries/libbap/default.nix+3−3
@@ -3,13 +3,13 @@
33
44stdenv.mkDerivation {
55 pname = "libbap";
6− version = "master-2019-11-15";
6+ version = "master-2020-11-25";
77
88 src = fetchFromGitHub {
99 owner = "BinaryAnalysisPlatform";
1010 repo = "bap-bindings";
11− rev = "1a30dd3e1df18c432a83a7038b555662d6982ae3";
12− sha256 = "140gmak2kymh3r0fagb6ms66lmvwhhqj8pcd3qxc1p4ar330fwrh";
11+ rev = "3193cb31e1b1f2455406ea0c819dad9dfa2ba10d";
12+ sha256 = "0m4spva3z6fgbwlg4zq53l5p227dic893q2qq65pvzxyf7k7nmil";
1313 };
1414
1515 nativeBuildInputs = [ autoreconfHook which ];
pkgs/development/ocaml-modules/bap/default.nix+12−12
@@ -2,28 +2,26 @@
22, ocaml, findlib, ocamlbuild, ocaml_oasis
33, bitstring, camlzip, cmdliner, core_kernel, ezjsonm, fileutils, ocaml_lwt, ocamlgraph, ocurl, re, uri, zarith, piqi, piqi-ocaml, uuidm, llvm, frontc, ounit, ppx_jane, parsexp
44, utop, libxml2, ncurses
5+, linenoise
6+, ppx_bap
57, ppx_bitstring
6−, ppx_tools_versioned
8+, yojson
79, which, makeWrapper, writeText
810, z3
911}:
1012
11−if !lib.versionAtLeast ocaml.version "4.07"
13+if !lib.versionAtLeast ocaml.version "4.08"
1214then throw "BAP is not available for OCaml ${ocaml.version}"
1315else
1416
15−if lib.versionAtLeast core_kernel.version "0.13"
16−then throw "BAP needs core_kernel-0.12 (hence OCaml 4.07)"
17−else
18−
1917stdenv.mkDerivation rec {
2018 name = "ocaml${ocaml.version}-bap-${version}";
21− version = "2.1.0";
19+ version = "2.2.0";
2220 src = fetchFromGitHub {
2321 owner = "BinaryAnalysisPlatform";
2422 repo = "bap";
2523 rev = "v${version}";
26− sha256 = "10fkr6p798ad18j4h9bvp9dg4pmjdpv3hmj7k389i0vhqniwi5xq";
24+ sha256 = "0c53sps6ba9n5cjdmapi8ylzlpcc11pksijp9swzlwgxyz5d276f";
2725 };
2826
2927 sigs = fetchurl {
@@ -41,12 +39,14 @@ stdenv.mkDerivation rec {
4139 nativeBuildInputs = [ which makeWrapper ];
4240
4341 buildInputs = [ ocaml findlib ocamlbuild ocaml_oasis
44− llvm ppx_bitstring ppx_tools_versioned
42+ linenoise
43+ ounit
44+ ppx_bitstring
4545 z3
4646 utop libxml2 ncurses ];
4747
48− propagatedBuildInputs = [ bitstring camlzip cmdliner ppx_jane core_kernel ezjsonm fileutils ocaml_lwt ocamlgraph ocurl re uri zarith piqi parsexp
49− piqi-ocaml uuidm frontc ounit ];
48+ propagatedBuildInputs = [ bitstring camlzip cmdliner ppx_bap core_kernel ezjsonm fileutils ocaml_lwt ocamlgraph ocurl re uri zarith piqi parsexp
49+ piqi-ocaml uuidm frontc yojson ];
5050
5151 installPhase = ''
5252 export OCAMLPATH=$OCAMLPATH:$OCAMLFIND_DESTDIR;
@@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
6565 patches = [ ./curses_is_ncurses.patch ];
6666
6767 preConfigure = ''
68− substituteInPlace oasis/elf --replace bitstring.ppx ppx_bitstring
68+ substituteInPlace oasis/elf-loader --replace bitstring.ppx ppx_bitstring
6969 '';
7070
7171 configureFlags = [ "--enable-everything ${disableIda}" "--with-llvm-config=${llvm}/bin/llvm-config" ];
pkgs/top-level/all-packages.nix+1−1
@@ -14693,7 +14693,7 @@ in
1469314693 libbacktrace = callPackage ../development/libraries/libbacktrace { };
1469414694
1469514695 libbap = callPackage ../development/libraries/libbap {
14696− inherit (ocaml-ng.ocamlPackages_4_07) bap ocaml findlib ctypes;
14696+ inherit (ocaml-ng.ocamlPackages) bap ocaml findlib ctypes;
1469714697 };
1469814698
1469914699 libbass = (callPackage ../development/libraries/audio/libbass { }).bass;
pkgs/top-level/python-packages.nix+1−1
@@ -878,7 +878,7 @@ in {
878878
879879 bandit = callPackage ../development/python-modules/bandit { };
880880
881− bap = callPackage ../development/python-modules/bap { bap = pkgs.ocaml-ng.ocamlPackages_4_07.bap; };
881+ bap = callPackage ../development/python-modules/bap { inherit (pkgs.ocaml-ng.ocamlPackages) bap; };
882882
883883 baron = callPackage ../development/python-modules/baron { };
884884