git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #43309 from dtzWill/update/radare2-2.7-and-cutter-1.5

radare2: 2.6.0 -> 2.7.0; radare2-cutter: 1.4 -> 1.5

commite1b8e8a40c5bb88fac0a37aaab9a2568894e5c66 authorWill Dietz <github@wdtz.org> dateWed 11 Jul 2018, 09:40 (8 years ago) parent73473bb1780e0e
2 files changed+36−11
pkgs/development/tools/analysis/radare2-cutter/default.nix+29−4 pkgs/development/tools/analysis/radare2/default.nix+7−7
pkgs/development/tools/analysis/radare2-cutter/default.nix+29−4
@@ -1,6 +1,6 @@
11{ stdenv, fetchFromGitHub
22# nativeBuildInputs
3−, qmake, pkgconfig
3+, qmake, pkgconfig, makeWrapper
44# Qt
55, qtbase, qtsvg, qtwebengine
66# buildInputs
@@ -10,20 +10,45 @@
1010
1111stdenv.mkDerivation rec {
1212 name = "radare2-cutter-${version}";
13− version = "1.4";
13+ version = "1.5";
1414
1515 src = fetchFromGitHub {
1616 owner = "radareorg";
1717 repo = "cutter";
1818 rev = "v${version}";
19− sha256 = "0wsxb6jfpsmgsigmbnh08j99779bsjz02v6aasqcwl6hwjx0mjfk";
19+ sha256 = "0xwls8jhhigdkwyq3nf9xwcz4inm5smwinkyliwmfzvfflbbci5c";
2020 };
2121
2222 postUnpack = "export sourceRoot=$sourceRoot/src";
2323
24− nativeBuildInputs = [ qmake pkgconfig ];
24+ # Remove this "very helpful" helper file intended for discovering r2,
25+ # as it's a doozy of harddcoded paths and unexpected behavior.
26+ # Happily Nix has everything all set so we don't need it,
27+ # other than as basis for the qmakeFlags set below.
28+ postPatch = ''
29+ substituteInPlace Cutter.pro \
30+ --replace "include(lib_radare2.pri)" ""
31+ '';
32+
33+ nativeBuildInputs = [ qmake pkgconfig makeWrapper ];
2534 buildInputs = [ qtbase qtsvg qtwebengine radare2 python3 ];
2635
36+ qmakeFlags = [
37+ "CONFIG+=link_pkgconfig"
38+ "PKGCONFIG+=r_core"
39+ # Leaving this enabled doesn't break build but generates errors
40+ # at runtime (to console) about being unable to load needed bits.
41+ # Disable until can be looked at.
42+ "CUTTER_ENABLE_JUPYTER=false"
43+ ];
44+
45+ # Fix crash on startup in some situations
46+ postInstall = ''
47+ wrapProgram $out/bin/Cutter \
48+ --prefix QT_PLUGIN_PATH : ${qtbase.bin}/${qtbase.qtPluginPrefix} \
49+ --prefix LD_LIBRARY_PATH : ${qtbase.out}/lib
50+ '';
51+
2752 enableParallelBuilding = true;
2853
2954 meta = with stdenv.lib; {
pkgs/development/tools/analysis/radare2/default.nix+7−7
@@ -17,13 +17,13 @@ let
1717 inherit (stdenv.lib) optional;
1818 #<generated>
1919 # DO NOT EDIT! Automatically generated by ./update.py
20− version_commit = "18177";
21− gittap = "2.6.0";
22− gittip = "83ef480221ec29d82c16003c61d0dc86b8851d38";
23− version = "2.6.0";
24− sha256 = "18jhb9w8c1m09383d2xm2qp0rc240psjygbbs222hzpx32hald5s";
25− cs_tip = "37569a6874c8547b349a80823adda9284499fe80";
26− cs_sha256 = "0v31367g4jn4baswl62y0rvvm2nf57y91n3731xqblvi6qxj8qkv";
20+ version_commit = "18681";
21+ gittap = "2.7.0";
22+ gittip = "6e08e452a7ec231a73997c44b4ff556c2998c7d9";
23+ version = "2.7.0";
24+ sha256 = "1a9z8w897256dhh3yhyfnshz3n2nrc4plc2i06cm5sznhl6x9xfx";
25+ cs_tip = "ec8a5ce98fa0422a395489ed47da912b15d77441";
26+ cs_sha256 = "080a64bqck28a2xfjwz29ddcr8p6hc6gi67mgry3pca289qrkk3q";
2727 #</generated>
2828in
2929stdenv.mkDerivation rec {