summary refs log tree commit diff
path: root/pkgs/development/tools/analysis
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-07-10 17:09:36 -0500
committerWill Dietz <w@wdtz.org>2018-07-10 18:03:25 -0500
commit79d01b2e0411ac777922d3efd84313985b0bbbd5 (patch)
tree1e9d9d332fe45dbb99b7693c7aced79e63b6391d /pkgs/development/tools/analysis
parenta70f75922452e74af0440ced1d44bf61d185a82a (diff)
downloadnixlib-79d01b2e0411ac777922d3efd84313985b0bbbd5.tar
nixlib-79d01b2e0411ac777922d3efd84313985b0bbbd5.tar.gz
nixlib-79d01b2e0411ac777922d3efd84313985b0bbbd5.tar.bz2
nixlib-79d01b2e0411ac777922d3efd84313985b0bbbd5.tar.lz
nixlib-79d01b2e0411ac777922d3efd84313985b0bbbd5.tar.xz
nixlib-79d01b2e0411ac777922d3efd84313985b0bbbd5.tar.zst
nixlib-79d01b2e0411ac777922d3efd84313985b0bbbd5.zip
radare2-cutter: fix build by skipping over unhelpful helper script :)
At least it's very much not helpful for our usage.
Diffstat (limited to 'pkgs/development/tools/analysis')
-rw-r--r--pkgs/development/tools/analysis/radare2-cutter/default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/development/tools/analysis/radare2-cutter/default.nix b/pkgs/development/tools/analysis/radare2-cutter/default.nix
index 6a2b34210aaf..a072dff007ed 100644
--- a/pkgs/development/tools/analysis/radare2-cutter/default.nix
+++ b/pkgs/development/tools/analysis/radare2-cutter/default.nix
@@ -21,9 +21,20 @@ stdenv.mkDerivation rec {
 
   postUnpack = "export sourceRoot=$sourceRoot/src";
 
+  # Remove this "very helpful" helper file intended for discovering r2,
+  # as it's a doozy of harddcoded paths and unexpected behavior.
+  # Happily Nix has everything all set so we don't need it,
+  # other than as basis for the qmakeFlags set below.
+  postPatch = ''
+    substituteInPlace Cutter.pro \
+      --replace "include(lib_radare2.pri)" ""
+  '';
+
   nativeBuildInputs = [ qmake pkgconfig ];
   buildInputs = [ qtbase qtsvg qtwebengine radare2 python3 ];
 
+  qmakeFlags = [ "CONFIG+=link_pkgconfig" "PKGCONFIG+=r_core" ];
+
   enableParallelBuilding = true;
 
   meta = with stdenv.lib; {