Merge pull request #101571 from Pamplemousse/cutter
This commit is contained in:
commit
589d025f73
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchFromGitHub
|
{ fetchFromGitHub, lib, mkDerivation
|
||||||
# nativeBuildInputs
|
# nativeBuildInputs
|
||||||
, qmake, pkgconfig
|
, qmake, pkgconfig
|
||||||
# Qt
|
# Qt
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
, python3
|
, python3
|
||||||
, wrapQtAppsHook }:
|
, wrapQtAppsHook }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "radare2-cutter";
|
pname = "radare2-cutter";
|
||||||
version = "1.12.0";
|
version = "1.12.0";
|
||||||
|
|
||||||
|
@ -30,21 +30,31 @@ stdenv.mkDerivation rec {
|
||||||
--replace "include(lib_radare2.pri)" ""
|
--replace "include(lib_radare2.pri)" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake pkgconfig ];
|
nativeBuildInputs = [ qmake pkgconfig python3 wrapQtAppsHook ];
|
||||||
buildInputs = [ qtbase qtsvg qtwebengine r2-for-cutter python3 wrapQtAppsHook ];
|
propagatedBuildInputs = [ python3.pkgs.pyside2 ];
|
||||||
|
buildInputs = [ qtbase qtsvg qtwebengine r2-for-cutter python3 ];
|
||||||
|
|
||||||
qmakeFlags = [
|
qmakeFlags = with python3.pkgs; [
|
||||||
"CONFIG+=link_pkgconfig"
|
"CONFIG+=link_pkgconfig"
|
||||||
"PKGCONFIG+=r_core"
|
"PKGCONFIG+=r_core"
|
||||||
# Leaving this enabled doesn't break build but generates errors
|
# Leaving this enabled doesn't break build but generates errors
|
||||||
# at runtime (to console) about being unable to load needed bits.
|
# at runtime (to console) about being unable to load needed bits.
|
||||||
# Disable until can be looked at.
|
# Disable until can be looked at.
|
||||||
"CUTTER_ENABLE_JUPYTER=false"
|
"CUTTER_ENABLE_JUPYTER=false"
|
||||||
|
# Enable support for Python plugins
|
||||||
|
"CUTTER_ENABLE_PYTHON=true"
|
||||||
|
"CUTTER_ENABLE_PYTHON_BINDINGS=true"
|
||||||
|
"SHIBOKEN_EXTRA_OPTIONS+=-I${r2-for-cutter}/include/libr"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export NIX_LDFLAGS="$NIX_LDFLAGS $(pkg-config --libs python3-embed)"
|
||||||
|
qtWrapperArgs+=(--prefix PYTHONPATH : "$PYTHONPATH")
|
||||||
|
'';
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with lib; {
|
||||||
description = "A Qt and C++ GUI for radare2 reverse engineering framework";
|
description = "A Qt and C++ GUI for radare2 reverse engineering framework";
|
||||||
homepage = src.meta.homepage;
|
homepage = src.meta.homepage;
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
|
|
|
@ -11739,7 +11739,7 @@ julia_15 = callPackage ../development/compilers/julia/1.5.nix {
|
||||||
lua = lua5;
|
lua = lua5;
|
||||||
} // (config.radare or {}))) radare2 r2-for-cutter;
|
} // (config.radare or {}))) radare2 r2-for-cutter;
|
||||||
|
|
||||||
radare2-cutter = libsForQt514.callPackage ../development/tools/analysis/radare2/cutter.nix { };
|
radare2-cutter = libsForQt515.callPackage ../development/tools/analysis/radare2/cutter.nix { };
|
||||||
|
|
||||||
ragel = ragelStable;
|
ragel = ragelStable;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue