diff options
author | Gabriel Ebner <gebner@gebner.org> | 2018-02-19 10:58:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 10:58:50 +0100 |
commit | 9b662759053eabe0ccea199b00859243593151f1 (patch) | |
tree | cc74c0ab61f795a04e0a963c511e86da2d581a45 | |
parent | 83cc0cddd60044f93ad591afc348050269c7a45d (diff) | |
parent | 06cb5d8f92184682860861d2eaacac455f20d2ea (diff) | |
download | nixlib-9b662759053eabe0ccea199b00859243593151f1.tar nixlib-9b662759053eabe0ccea199b00859243593151f1.tar.gz nixlib-9b662759053eabe0ccea199b00859243593151f1.tar.bz2 nixlib-9b662759053eabe0ccea199b00859243593151f1.tar.lz nixlib-9b662759053eabe0ccea199b00859243593151f1.tar.xz nixlib-9b662759053eabe0ccea199b00859243593151f1.tar.zst nixlib-9b662759053eabe0ccea199b00859243593151f1.zip |
Merge pull request #35146 from dtzWill/update/radare2-2.3.0
radare2: 2.2.0 -> 2.3.0
-rw-r--r-- | pkgs/development/tools/analysis/radare2/default.nix | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/pkgs/development/tools/analysis/radare2/default.nix b/pkgs/development/tools/analysis/radare2/default.nix index 49f6aeb72799..6a7992b01311 100644 --- a/pkgs/development/tools/analysis/radare2/default.nix +++ b/pkgs/development/tools/analysis/radare2/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchFromGitHub, fetchurl, fetchpatch, pkgconfig, libusb, readline, libewf, perl, zlib, openssl, +{stdenv, fetchFromGitHub, fetchgit, fetchurl, fetchpatch, pkgconfig, libusb, readline, libewf, perl, zlib, openssl, git, gtk2 ? null, vte ? null, gtkdialog ? null, python ? null, ruby ? null, @@ -13,32 +13,33 @@ let inherit (stdenv.lib) optional; in stdenv.mkDerivation rec { - version = "2.2.0"; + version = "2.3.0"; name = "radare2-${version}"; src = fetchFromGitHub { owner = "radare"; repo = "radare2"; rev = version; - sha256 = "0rd1dfgwdpn3x1pzi67sw040vxywbg5h6yw0mj317p0p1cvlyihl"; + sha256 = "0x5vcprqf0fnj876mdvryfvg7ymbrw1cxrr7a06v0swg7yql1lpw"; }; postPatch = let - cs_ver = "3.0.4"; # version from $sourceRoot/shlr/Makefile - capstone = fetchurl { - url = "https://github.com/aquynh/capstone/archive/${cs_ver}.tar.gz"; - sha256 = "1whl5c8j6vqvz2j6ay2pyszx0jg8d3x8hq66cvgghmjchvsssvax"; + cs_tip = "bdbc57de63725a98732ddc34b48de96f8ada66f2"; # version from $sourceRoot/shlr/Makefile + capstone = fetchgit { + url = "https://github.com/aquynh/capstone.git"; + rev = cs_tip; + sha256 = "1sqxpjf2dlrg87dm9p39p5d1qzahrnfnrjijpv1xg1shax439jni"; + leaveDotGit = true; }; in '' - if ! grep -F "CS_VER=${cs_ver}" shlr/Makefile; then echo "CS_VER mismatch"; exit 1; fi - substituteInPlace shlr/Makefile --replace CS_RELEASE=0 CS_RELEASE=1 - cp ${capstone} shlr/capstone-${cs_ver}.tar.gz - + if ! grep -F "CS_TIP=${cs_tip}" shlr/Makefile; then echo "CS_TIP mismatch"; exit 1; fi + cp -r ${capstone} shlr/capstone + chmod -R u+rw shlr/capstone ''; enableParallelBuilding = true; - nativeBuildInputs = [ pkgconfig ]; + nativeBuildInputs = [ pkgconfig git ]; buildInputs = [ readline libusb libewf perl zlib openssl] ++ optional useX11 [gtkdialog vte gtk2] ++ optional rubyBindings [ruby] |