mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
nixpkgs: capstone 2.1.2 -> 3.0.4
Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
parent
a5e1b8db8f
commit
2a3a761639
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user