From 2a3a761639f8e5a0c393e8c2cb093ae89de76659 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Tue, 21 Jul 2015 17:00:10 -0500 Subject: [PATCH] nixpkgs: capstone 2.1.2 -> 3.0.4 Signed-off-by: Austin Seipp --- pkgs/development/libraries/capstone/default.nix | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/pkgs/development/libraries/capstone/default.nix b/pkgs/development/libraries/capstone/default.nix index d61c82bb7d3b..31971b5d52a0 100644 --- a/pkgs/development/libraries/capstone/default.nix +++ b/pkgs/development/libraries/capstone/default.nix @@ -1,21 +1,16 @@ -{ stdenv, fetchurl, bash }: +{ stdenv, fetchurl, bash, cmake }: stdenv.mkDerivation rec { name = "capstone-${version}"; - version = "2.1.2"; + version = "3.0.4"; src = fetchurl { - url = "http://www.capstone-engine.org/download/${version}/${name}.tgz"; - sha256 = "1k6px3vdcsfby3lakss5sazs875kbzkzqk7cj79xrm2y5ik1vr29"; + url = "hhttps://github.com/aquynh/capstone/archive/${version}.tar.gz"; + sha256 = "1whl5c8j6vqvz2j6ay2pyszx0jg8d3x8hq66cvgghmjchvsssvax"; }; - buildPhase = false; - - patchPhase = '' - substituteInPlace make.sh --replace "/usr/bin/env bash" "${bash}/bin/bash" - ''; - - installPhase = "PREFIX=$out ./make.sh install"; + buildInputs = [ cmake ]; + enableParallelBuild = true; meta = { description = "advanced disassembly library";