bap: 1.2 -> 1.4

This commit is contained in:
Matthew Maurer 2018-03-01 12:10:41 -05:00
parent 48cc8c2fff
commit a9409104a0
6 changed files with 19 additions and 20 deletions

View File

@ -3,13 +3,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libbap-${version}"; name = "libbap-${version}";
version = "master-2017-02-08"; version = "master-2018-03-01";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BinaryAnalysisPlatform"; owner = "BinaryAnalysisPlatform";
repo = "bap-bindings"; repo = "bap-bindings";
rev = "b3da5bd5cdb3d646015ccdeb886b5ea8fd85a108"; rev = "bd125c379a784d4265c2ddcf1f6e34bde2e568d4";
sha256 = "0cwfyfpxbi9bm4kkpamyd7mgsm5b6j1rh217fqb5gi05wg45rkbb"; sha256 = "0dp90djyjc262v1b1cw5irp424a8394y86fyprdk8z741wg56m3v";
}; };
nativeBuildInputs = [ autoreconfHook which ]; nativeBuildInputs = [ autoreconfHook which ];

View File

@ -1,18 +1,21 @@
{stdenv, buildOcaml, fetchFromGitHub, fetchurl, camlp4, ocaml_oasis, bitstring, camlzip, cmdliner, core_kernel, ezjsonm, faillib, fileutils, ocaml_lwt, ocamlgraph, ocurl, re, uri, zarith, piqi, piqi-ocaml, uuidm, llvm_38, ulex, easy-format, xmlm, frontc, ounit, utop, which, makeWrapper, writeText, ocaml}: {stdenv, buildOcaml, fetchFromGitHub, fetchurl, camlp4, ocaml_oasis,
bitstring, camlzip, cmdliner, core_kernel, ezjsonm, faillib, fileutils, ocaml_lwt, ocamlgraph, ocurl, re, uri, zarith, piqi, piqi-ocaml, uuidm, llvm_38, ulex, easy-format, xmlm, frontc, ounit, ppx_jane, parsexp,
utop,
which, makeWrapper, writeText, ocaml}:
buildOcaml rec { buildOcaml rec {
name = "bap"; name = "bap";
version = "1.2.0"; version = "1.4.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BinaryAnalysisPlatform"; owner = "BinaryAnalysisPlatform";
repo = "bap"; repo = "bap";
rev = "v${version}"; rev = "v${version}";
sha256 = "0dn1gvj73pma0rsw8r50cmjddibnf42w1kbskb2vpzq0kb79jlkw"; sha256 = "0329m65x8q5q8vgvsqgyz2vz7q6qkh2rh11j7x29hckk3fzxsf8g";
}; };
sigs = fetchurl { sigs = fetchurl {
url = "https://github.com/BinaryAnalysisPlatform/bap/releases/download/v${version}/sigs.zip"; url = "https://github.com/BinaryAnalysisPlatform/bap/releases/download/v${version}/sigs.zip";
sha256 = "0mpsq2pinbrynlisnh8j3nrlamlsls7lza0bkqnm9szqjjdmcgfn"; sha256 = "0k761w82zkmi5dwsfqq61dbjnb8mmmpb2xwp7vp85xs14g5fjz19";
}; };
createFindlibDestdir = true; createFindlibDestdir = true;
@ -28,7 +31,7 @@ buildOcaml rec {
llvm_38 llvm_38
utop ]; utop ];
propagatedBuildInputs = [ bitstring camlzip cmdliner core_kernel ezjsonm faillib fileutils ocaml_lwt ocamlgraph ocurl re uri zarith piqi propagatedBuildInputs = [ bitstring camlzip cmdliner ppx_jane core_kernel ezjsonm faillib fileutils ocaml_lwt ocamlgraph ocurl re uri zarith piqi parsexp
piqi-ocaml uuidm frontc ounit ]; piqi-ocaml uuidm frontc ounit ];
installPhase = '' installPhase = ''
@ -45,11 +48,7 @@ buildOcaml rec {
disableIda = "--disable-ida --disable-fsi-benchmark"; disableIda = "--disable-ida --disable-fsi-benchmark";
doCheck = true; configureFlags = "--enable-everything ${disableIda} --with-llvm-config=${llvm_38}/bin/llvm-config";
checkTarget = "check test";
configureFlags = "--enable-everything --enable-tests ${disableIda} --with-llvm-config=${llvm_38}/bin/llvm-config";
BAPBUILDFLAGS = "-j $(NIX_BUILD_CORES)"; BAPBUILDFLAGS = "-j $(NIX_BUILD_CORES)";
@ -58,6 +57,6 @@ buildOcaml rec {
homepage = https://github.com/BinaryAnalysisPlatform/bap/; homepage = https://github.com/BinaryAnalysisPlatform/bap/;
maintainers = [ maintainers.maurer ]; maintainers = [ maintainers.maurer ];
license = licenses.mit; license = licenses.mit;
broken = versionAtLeast ocaml.version "4.03"; broken = versionOlder ocaml.version "4.03";
}; };
} }

View File

@ -2,13 +2,13 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "bap"; pname = "bap";
version = "1.1.0"; version = "1.3.1";
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "BinaryAnalysisPlatform"; owner = "BinaryAnalysisPlatform";
repo = "bap-python"; repo = "bap-python";
rev = "v${version}"; rev = "${version}";
sha256 = "0wd46ksxscgb2dci69sbndzxs6drq5cahraqq42cdk114hkrsxs3"; sha256 = "1ahkrmcn7qaivps1gar8wd9mq2qqyx6zzvznf5r9rr05h17x5lbp";
}; };
propagatedBuildInputs = [bap requests]; propagatedBuildInputs = [bap requests];

View File

@ -9456,7 +9456,7 @@ with pkgs;
libb2 = callPackage ../development/libraries/libb2 { }; libb2 = callPackage ../development/libraries/libb2 { };
libbap = callPackage ../development/libraries/libbap { libbap = callPackage ../development/libraries/libbap {
inherit (ocamlPackages_4_02) bap ocaml findlib ctypes; inherit (ocamlPackages) bap ocaml findlib ctypes;
}; };
libbass = (callPackage ../development/libraries/audio/libbass { }).bass; libbass = (callPackage ../development/libraries/audio/libbass { }).bass;

View File

@ -54,7 +54,7 @@ let
base64 = callPackage ../development/ocaml-modules/base64 { }; base64 = callPackage ../development/ocaml-modules/base64 { };
bap = callPackage ../development/ocaml-modules/bap { cmdliner = cmdliner_0_9; }; bap = callPackage ../development/ocaml-modules/bap { };
batteries = callPackage ../development/ocaml-modules/batteries { }; batteries = callPackage ../development/ocaml-modules/batteries { };

View File

@ -184,7 +184,7 @@ in {
backports_csv = callPackage ../development/python-modules/backports_csv {}; backports_csv = callPackage ../development/python-modules/backports_csv {};
bap = callPackage ../development/python-modules/bap { bap = callPackage ../development/python-modules/bap {
bap = pkgs.ocamlPackages_4_02.bap; bap = pkgs.ocamlPackages.bap;
}; };
bash_kernel = callPackage ../development/python-modules/bash_kernel { }; bash_kernel = callPackage ../development/python-modules/bash_kernel { };