2014-04-12 02:40:31 +00:00
|
|
|
{ stdenv, fetchurl, bash }:
|
2014-04-08 12:04:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "capstone-${version}";
|
|
|
|
version = "2.1.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.capstone-engine.org/download/${version}/${name}.tgz";
|
|
|
|
sha256 = "1k6px3vdcsfby3lakss5sazs875kbzkzqk7cj79xrm2y5ik1vr29";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = false;
|
2014-04-12 02:40:31 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace make.sh --replace "/usr/bin/env bash" "${bash}/bin/bash"
|
|
|
|
'';
|
|
|
|
|
2014-04-08 12:04:11 +00:00
|
|
|
installPhase = "PREFIX=$out ./make.sh install";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "advanced disassembly library";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|