2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, bap, ocaml, findlib, ctypes, ctypes-foreign, autoreconfHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
which }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "libbap";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "master-2022-07-13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BinaryAnalysisPlatform";
|
|
|
|
repo = "bap-bindings";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "4d324dd794f8e022e8eddecbb2ae2e7b28173947";
|
|
|
|
hash = "sha256-la47HR+i99ueDEWR91YIXGdKflpE1E0qmmJjeowmGSI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook which ocaml findlib ];
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = [ bap ctypes ctypes-foreign ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/lib
|
|
|
|
mkdir -p $out/include
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/binaryanalysisplatform/bap-bindings";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "C library for interacting with BAP";
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.maurer ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|