at 24.05-pre 30 lines 811 B view raw
1{ lib, stdenv, fetchFromGitHub, bap, ocaml, findlib, ctypes, autoreconfHook, 2 which }: 3 4stdenv.mkDerivation { 5 pname = "libbap"; 6 version = "master-2022-07-13"; 7 8 src = fetchFromGitHub { 9 owner = "BinaryAnalysisPlatform"; 10 repo = "bap-bindings"; 11 rev = "4d324dd794f8e022e8eddecbb2ae2e7b28173947"; 12 hash = "sha256-la47HR+i99ueDEWR91YIXGdKflpE1E0qmmJjeowmGSI="; 13 }; 14 15 nativeBuildInputs = [ autoreconfHook which ocaml findlib ]; 16 buildInputs = [ bap ctypes ]; 17 18 preInstall = '' 19 mkdir -p $out/lib 20 mkdir -p $out/include 21 ''; 22 23 meta = with lib; { 24 homepage = "https://github.com/binaryanalysisplatform/bap-bindings"; 25 description = "A C library for interacting with BAP"; 26 maintainers = [ maintainers.maurer ]; 27 platforms = platforms.unix; 28 license = licenses.mit; 29 }; 30}