nixpkgs: capstone 2.1.2 -> 3.0.4

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2015-07-21 17:00:10 -05:00
parent a5e1b8db8f
commit 2a3a761639

View File

@ -1,21 +1,16 @@
{ stdenv, fetchurl, bash }: { stdenv, fetchurl, bash, cmake }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "capstone-${version}"; name = "capstone-${version}";
version = "2.1.2"; version = "3.0.4";
src = fetchurl { src = fetchurl {
url = "http://www.capstone-engine.org/download/${version}/${name}.tgz"; url = "hhttps://github.com/aquynh/capstone/archive/${version}.tar.gz";
sha256 = "1k6px3vdcsfby3lakss5sazs875kbzkzqk7cj79xrm2y5ik1vr29"; sha256 = "1whl5c8j6vqvz2j6ay2pyszx0jg8d3x8hq66cvgghmjchvsssvax";
}; };
buildPhase = false; buildInputs = [ cmake ];
enableParallelBuild = true;
patchPhase = ''
substituteInPlace make.sh --replace "/usr/bin/env bash" "${bash}/bin/bash"
'';
installPhase = "PREFIX=$out ./make.sh install";
meta = { meta = {
description = "advanced disassembly library"; description = "advanced disassembly library";