nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09 29 lines 805 B view raw
1{ stdenv, fetchFromGitHub, bap, ocaml, findlib, ctypes, autoreconfHook, 2 which }: 3 4stdenv.mkDerivation rec { 5 name = "libbap-${version}"; 6 version = "master-2017-02-08"; 7 8 src = fetchFromGitHub { 9 owner = "BinaryAnalysisPlatform"; 10 repo = "bap-bindings"; 11 rev = "b3da5bd5cdb3d646015ccdeb886b5ea8fd85a108"; 12 sha256 = "0cwfyfpxbi9bm4kkpamyd7mgsm5b6j1rh217fqb5gi05wg45rkbb"; 13 }; 14 15 nativeBuildInputs = [ autoreconfHook which ]; 16 buildInputs = [ ocaml bap findlib ctypes ]; 17 18 preInstall = '' 19 mkdir -p $out/lib 20 mkdir -p $out/include 21 ''; 22 23 meta = { 24 homepage = https://github.com/binaryanalysisplatform/bap-bindings; 25 description = "A C library for interacting with BAP"; 26 maintainers = [ stdenv.lib.maintainers.maurer ]; 27 platforms = stdenv.lib.platforms.unix; 28 }; 29}