2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig }:
|
2014-04-08 13:04:11 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "capstone-${version}";
|
2018-07-22 04:12:45 +01:00
|
|
|
version = "3.0.5";
|
2014-04-08 13:04:11 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-07-22 08:56:46 +01:00
|
|
|
url = "https://github.com/aquynh/capstone/archive/${version}.tar.gz";
|
2018-07-22 04:12:45 +01:00
|
|
|
sha256 = "1wbd1g3r32ni6zd9vwrq3kn7fdp9y8qwn9zllrrbk8n5wyaxcgci";
|
2014-04-08 13:04:11 +01:00
|
|
|
};
|
|
|
|
|
2016-10-03 11:51:16 +01: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 11:51:16 +01:00
|
|
|
|
2016-09-01 09:46:11 +01:00
|
|
|
enableParallelBuilding = true;
|
2014-04-08 13:04:11 +01:00
|
|
|
|
|
|
|
meta = {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "Advanced disassembly library";
|
2014-04-08 13:04:11 +01:00
|
|
|
homepage = "http://www.capstone-engine.org";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
2014-04-12 03:40:31 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-04-08 13:04:11 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|