2017-01-14 23:45:52 +00:00
|
|
|
{ stdenv, fetchurl, bash, pkgconfig }:
|
2014-04-08 12:04:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "capstone-${version}";
|
2015-07-21 22:00:10 +00:00
|
|
|
version = "3.0.4";
|
2014-04-08 12:04:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-22 07:56:46 +00:00
|
|
|
url = "https://github.com/aquynh/capstone/archive/${version}.tar.gz";
|
2015-07-21 22:00:10 +00:00
|
|
|
sha256 = "1whl5c8j6vqvz2j6ay2pyszx0jg8d3x8hq66cvgghmjchvsssvax";
|
2014-04-08 12:04:11 +00:00
|
|
|
};
|
|
|
|
|
2016-10-03 10:51:16 +00:00
|
|
|
configurePhase = '' patchShebangs make.sh '';
|
|
|
|
buildPhase = '' ./make.sh '';
|
|
|
|
installPhase = '' env PREFIX=$out ./make.sh install '';
|
2017-01-14 23:45:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
];
|
2016-10-03 10:51:16 +00:00
|
|
|
|
2016-09-01 08:46:11 +00:00
|
|
|
enableParallelBuilding = true;
|
2014-04-08 12:04:11 +00:00
|
|
|
|
|
|
|
meta = {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "Advanced disassembly library";
|
2014-04-08 12:04:11 +00:00
|
|
|
homepage = "http://www.capstone-engine.org";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2014-04-12 02:40:31 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-04-08 12:04:11 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|