Merge pull request #33198 from dtzWill/feature/r2-cutter-1.1

r2-cutter: init at 1.1(.0), radare2 qt gui

authored by Joachim F and committed by GitHub b4b8f4e4 c03f1ed9

+49
+48
pkgs/development/tools/analysis/radare2-cutter/default.nix
···
··· 1 + { stdenv, fetchFromGitHub, fetchpatch, qmake, pkgconfig, qtbase, qtsvg, radare2 }: 2 + 3 + 4 + stdenv.mkDerivation rec { 5 + name = "radare2-cutter-${version}"; 6 + version = "1.1"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "radareorg"; 10 + repo = "cutter"; 11 + rev = "v${version}"; 12 + sha256 = "02m5sf45n455hn34y7hrqanj830rc5xhz2ppp1z3mzbz0s515pfl"; 13 + }; 14 + 15 + postUnpack = "export sourceRoot=$sourceRoot/src"; 16 + 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 + 35 + patchFlags = [ "-p2" ]; 36 + 37 + nativeBuildInputs = [ qmake pkgconfig ]; 38 + buildInputs = [ qtbase qtsvg radare2 ]; 39 + 40 + enableParallelBuilding = true; 41 + 42 + meta = with stdenv.lib; { 43 + description = "A Qt and C++ GUI for radare2 reverse engineering framework"; 44 + homepage = src.meta.homepage; 45 + license = licenses.gpl3; 46 + maintainers = with maintainers; [ dtzWill ]; 47 + }; 48 + }
+1
pkgs/top-level/all-packages.nix
··· 7928 rubyBindings = config.radare.rubyBindings or false; 7929 luaBindings = config.radare.luaBindings or false; 7930 }; 7931 7932 ragel = ragelStable; 7933
··· 7928 rubyBindings = config.radare.rubyBindings or false; 7929 luaBindings = config.radare.luaBindings or false; 7930 }; 7931 + radare2-cutter = libsForQt5.callPackage ../development/tools/analysis/radare2-cutter { }; 7932 7933 ragel = ragelStable; 7934