2018-06-25 08:13:02 -07:00
|
|
|
{ stdenv, fetchFromGitHub
|
|
|
|
# nativeBuildInputs
|
|
|
|
, qmake, pkgconfig
|
|
|
|
# Qt
|
|
|
|
, qtbase, qtsvg, qtwebengine
|
|
|
|
# buildInputs
|
|
|
|
, radare2
|
|
|
|
, python3 }:
|
2017-12-04 17:33:51 -08:00
|
|
|
|
2018-03-03 22:50:42 -08:00
|
|
|
|
2017-12-04 17:33:51 -08:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "radare2-cutter-${version}";
|
2018-07-10 14:53:00 -07:00
|
|
|
version = "1.5";
|
2017-12-04 17:33:51 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "radareorg";
|
|
|
|
repo = "cutter";
|
|
|
|
rev = "v${version}";
|
2018-07-10 14:53:00 -07:00
|
|
|
sha256 = "0xwls8jhhigdkwyq3nf9xwcz4inm5smwinkyliwmfzvfflbbci5c";
|
2017-12-04 17:33:51 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
postUnpack = "export sourceRoot=$sourceRoot/src";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake pkgconfig ];
|
2018-06-25 08:13:02 -07:00
|
|
|
buildInputs = [ qtbase qtsvg qtwebengine radare2 python3 ];
|
2017-12-04 17:33:51 -08:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A Qt and C++ GUI for radare2 reverse engineering framework";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
};
|
|
|
|
}
|