mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
09e0cc7cc7
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated https://repology.org/repository/nix_stable/problems
30 lines
805 B
Nix
30 lines
805 B
Nix
{ stdenv, fetchFromGitHub, bap, ocaml, findlib, ctypes, autoreconfHook,
|
|
which }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libbap-${version}";
|
|
version = "master-2017-02-08";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "BinaryAnalysisPlatform";
|
|
repo = "bap-bindings";
|
|
rev = "b3da5bd5cdb3d646015ccdeb886b5ea8fd85a108";
|
|
sha256 = "0cwfyfpxbi9bm4kkpamyd7mgsm5b6j1rh217fqb5gi05wg45rkbb";
|
|
};
|
|
|
|
nativeBuildInputs = [ autoreconfHook which ];
|
|
buildInputs = [ ocaml bap findlib ctypes ];
|
|
|
|
preInstall = ''
|
|
mkdir -p $out/lib
|
|
mkdir -p $out/include
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://github.com/binaryanalysisplatform/bap-bindings;
|
|
description = "A C library for interacting with BAP";
|
|
maintainers = [ stdenv.lib.maintainers.maurer ];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|