git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #38877 from Mic92/radare2

radare2-cutter: 1.1 -> 1.3

commitf204bdf93d7bb073e10644be47ebb797ce836d19 authorJörg Thalheim <Mic92@users.noreply.github.com> dateFri 13 Apr 2018, 10:29 (9 years ago) parent94d68a9abefb01
2 files changed+17−31
pkgs/development/tools/analysis/radare2-cutter/default.nix+2−20 pkgs/development/tools/analysis/radare2/default.nix+15−11
pkgs/development/tools/analysis/radare2-cutter/default.nix+2−20
@@ -3,35 +3,17 @@
33
44stdenv.mkDerivation rec {
55 name = "radare2-cutter-${version}";
6− version = "1.1";
6+ version = "1.3";
77
88 src = fetchFromGitHub {
99 owner = "radareorg";
1010 repo = "cutter";
1111 rev = "v${version}";
12− sha256 = "02m5sf45n455hn34y7hrqanj830rc5xhz2ppp1z3mzbz0s515pfl";
12+ sha256 = "1z76yz2i9k8mxjk85k2agdj941szdbl2gi66p3dh50878zqavfrr";
1313 };
1414
1515 postUnpack = "export sourceRoot=$sourceRoot/src";
1616
17− patches = [
18− # Fixup version number :D
19− (fetchpatch {
20− url = "https://github.com/radareorg/cutter/commit/69506b64600df632afdca8b680baa7d946c78644.patch";
21− sha256 = "0ks3ixz8bycjcfi26bd0p6z7qaplhq00alw44hsfzpdm4bmr01x0";
22− })
23− (fetchpatch {
24− url = "https://github.com/radareorg/cutter/commit/8b52c66f4f0091cd9d97389b32aa519c2c602e2b.patch";
25− sha256 = "0wcdn35lx2943pfzm7mkg4sr82pm0qz3yxf74m8fxbd70s3w0gkm";
26− })
27−
28− # case-insensitive filtering
29− (fetchpatch {
30− url = "https://github.com/radareorg/cutter/commit/0ebd34370bcaed00000168147572bb78106eeab1.patch";
31− sha256 = "0sc50jwhncfnd2i5mlyld4dbdzi2ws7nh4yglkhlap9l9h1jxn20";
32− })
33− ];
34−
3517 patchFlags = [ "-p2" ];
3618
3719 nativeBuildInputs = [ qmake pkgconfig ];
pkgs/development/tools/analysis/radare2/default.nix+15−11
@@ -1,9 +1,10 @@
1−{stdenv, fetchFromGitHub, fetchgit, fetchurl, fetchpatch, pkgconfig, libusb, readline, libewf, perl, zlib, openssl, git,
2−gtk2 ? null, vte ? null, gtkdialog ? null,
3−python ? null,
4−ruby ? null,
5−lua ? null,
6−useX11, rubyBindings, pythonBindings, luaBindings}:
1+{stdenv, fetchFromGitHub, pkgconfig, libusb, readline, libewf, perl, zlib, openssl
2+, gtk2 ? null, vte ? null, gtkdialog ? null
3+, python ? null
4+, ruby ? null
5+, lua ? null
6+, useX11, rubyBindings, pythonBindings, luaBindings
7+}:
78
89assert useX11 -> (gtk2 != null && vte != null && gtkdialog != null);
910assert rubyBindings -> ruby != null;
@@ -23,13 +24,16 @@ stdenv.mkDerivation rec {
2324 sha256 = "07x94chkhpn3wgw4pypn35psxq370j6xwmhf1mh5z27cqkq7c2yd";
2425 };
2526
27+ # do not try to update capstone
28+ WITHOUT_PULL=1;
29+
2630 postPatch = let
2731 cs_tip = "4a1b580d069c82d60070d0869a87000db7cdabe2"; # version from $sourceRoot/shlr/Makefile
28− capstone = fetchgit {
29− url = "https://github.com/aquynh/capstone.git";
32+ capstone = fetchFromGitHub {
33+ owner = "aquynh";
34+ repo = "capstone";
3035 rev = cs_tip;
31− sha256 = "1b126npshdbwh5y7rafmb9w4dzlvxsf4ca6bx4zs2y7kbk48jyn8";
32− leaveDotGit = true;
36+ sha256 = "0v6rxfpxjq0hf40qn1n5m5wsv1dv6p1j8vm94a708lhvcbk9nkv8";
3337 };
3438 in ''
3539 if ! grep -F "CS_TIP=${cs_tip}" shlr/Makefile; then echo "CS_TIP mismatch"; exit 1; fi
@@ -39,7 +43,7 @@ stdenv.mkDerivation rec {
3943
4044 enableParallelBuilding = true;
4145
42− nativeBuildInputs = [ pkgconfig git ];
46+ nativeBuildInputs = [ pkgconfig ];
4347 buildInputs = [ readline libusb libewf perl zlib openssl]
4448 ++ optional useX11 [gtkdialog vte gtk2]
4549 ++ optional rubyBindings [ruby]