ocamlPackages.bap: Correct build dependencies

As pointed upstream:
https://github.com/BinaryAnalysisPlatform/bap/issues/1261#issuecomment-754926500

Signed-off-by: Pamplemousse <xav.maso@gmail.com>

authored by Pamplemousse and committed by Vincent Laporte 9ff73686 c7f5dcbb

+9 -11
+8 -10
pkgs/development/ocaml-modules/bap/default.nix
··· 1 1 { stdenv, fetchFromGitHub, fetchurl 2 - , ocaml, findlib, ocamlbuild, ocaml_oasis, 3 - bitstring, camlzip, cmdliner, core_kernel, ezjsonm, fileutils, ocaml_lwt, ocamlgraph, ocurl, re, uri, zarith, piqi, piqi-ocaml, uuidm, llvm, frontc, ounit, ppx_jane, parsexp, 4 - utop, libxml2, 5 - ppx_bitstring, 6 - ppx_tools_versioned, 7 - which, makeWrapper, writeText 2 + , ocaml, findlib, ocamlbuild, ocaml_oasis 3 + , bitstring, camlzip, cmdliner, core_kernel, ezjsonm, fileutils, ocaml_lwt, ocamlgraph, ocurl, re, uri, zarith, piqi, piqi-ocaml, uuidm, llvm, frontc, ounit, ppx_jane, parsexp 4 + , utop, libxml2, ncurses 5 + , ppx_bitstring 6 + , ppx_tools_versioned 7 + , which, makeWrapper, writeText 8 8 , z3 9 9 }: 10 10 ··· 43 43 buildInputs = [ ocaml findlib ocamlbuild ocaml_oasis 44 44 llvm ppx_bitstring ppx_tools_versioned 45 45 z3 46 - utop libxml2 ]; 46 + utop libxml2 ncurses ]; 47 47 48 48 propagatedBuildInputs = [ bitstring camlzip cmdliner ppx_jane core_kernel ezjsonm fileutils ocaml_lwt ocamlgraph ocurl re uri zarith piqi parsexp 49 49 piqi-ocaml uuidm frontc ounit ]; ··· 62 62 63 63 disableIda = "--disable-ida"; 64 64 65 - patches = [ ./dont-add-curses.patch ]; 65 + patches = [ ./curses_is_ncurses.patch ]; 66 66 67 67 preConfigure = '' 68 68 substituteInPlace oasis/elf --replace bitstring.ppx ppx_bitstring 69 69 ''; 70 70 71 71 configureFlags = [ "--enable-everything ${disableIda}" "--with-llvm-config=${llvm}/bin/llvm-config" ]; 72 - 73 - BAPBUILDFLAGS = "-j $(NIX_BUILD_CORES)"; 74 72 75 73 meta = with stdenv.lib; { 76 74 description = "Platform for binary analysis. It is written in OCaml, but can be used from other languages.";
+1 -1
pkgs/development/ocaml-modules/bap/dont-add-curses.patch pkgs/development/ocaml-modules/bap/curses_is_ncurses.patch
··· 23 23 Bap_llvm_ogre_types 24 24 CCOpt: $cc_optimization 25 25 - CCLib: $llvm_lib $cxxlibs $llvm_ldflags -lcurses 26 - + CCLib: $llvm_lib $cxxlibs $llvm_ldflags 26 + + CCLib: $llvm_lib $cxxlibs $llvm_ldflags -lncurses 27 27 CSources: llvm_disasm.h, 28 28 llvm_disasm.c, 29 29 llvm_stubs.c,