radare2-cutter: wrap to set plugin / lib paths, fix crashery
This commit is contained in:
parent
79d01b2e04
commit
26e1a5410a
1 changed files with 9 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
{ stdenv, fetchFromGitHub
|
||||
# nativeBuildInputs
|
||||
, qmake, pkgconfig
|
||||
, qmake, pkgconfig, makeWrapper
|
||||
# Qt
|
||||
, qtbase, qtsvg, qtwebengine
|
||||
# buildInputs
|
||||
|
@ -30,11 +30,18 @@ stdenv.mkDerivation rec {
|
|||
--replace "include(lib_radare2.pri)" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ qmake pkgconfig ];
|
||||
nativeBuildInputs = [ qmake pkgconfig makeWrapper ];
|
||||
buildInputs = [ qtbase qtsvg qtwebengine radare2 python3 ];
|
||||
|
||||
qmakeFlags = [ "CONFIG+=link_pkgconfig" "PKGCONFIG+=r_core" ];
|
||||
|
||||
# Fix crash on startup in some situations
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/Cutter \
|
||||
--prefix QT_PLUGIN_PATH : ${qtbase.bin}/${qtbase.qtPluginPrefix} \
|
||||
--prefix LD_LIBRARY_PATH : ${qtbase.out}/lib
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue