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