2021-03-30 10:10:56 +00:00
|
|
|
{ fetchFromGitHub, lib, mkDerivation
|
|
|
|
# nativeBuildInputs
|
|
|
|
, qmake, pkg-config, cmake
|
|
|
|
# Qt
|
|
|
|
, qtbase, qtsvg, qtwebengine, qttools
|
|
|
|
# buildInputs
|
2023-08-05 14:18:43 +00:00
|
|
|
, graphviz
|
2021-03-30 10:10:56 +00:00
|
|
|
, rizin
|
|
|
|
, python3
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "cutter";
|
2023-08-05 14:18:43 +00:00
|
|
|
version = "2.3.0";
|
2021-03-30 10:10:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rizinorg";
|
|
|
|
repo = "cutter";
|
|
|
|
rev = "v${version}";
|
2023-08-05 14:18:43 +00:00
|
|
|
hash = "sha256-oQ3sLIGKMEw3k27aSFcrJqo0TgGkkBNdzl6GSoOIYak=";
|
2021-03-30 10:10:56 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake qmake pkg-config python3 wrapQtAppsHook ];
|
|
|
|
propagatedBuildInputs = [ python3.pkgs.pyside2 ];
|
2023-08-05 14:18:43 +00:00
|
|
|
buildInputs = [ graphviz qtbase qttools qtsvg qtwebengine rizin python3 ];
|
2021-03-30 10:10:56 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCUTTER_USE_BUNDLED_RIZIN=OFF"
|
|
|
|
"-DCUTTER_ENABLE_PYTHON=ON"
|
|
|
|
"-DCUTTER_ENABLE_PYTHON_BINDINGS=ON"
|
2023-08-05 14:18:43 +00:00
|
|
|
"-DCUTTER_ENABLE_GRAPHVIZ=ON"
|
2021-03-30 10:10:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
qtWrapperArgs+=(--prefix PYTHONPATH : "$PYTHONPATH")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Free and Open Source Reverse Engineering Platform powered by rizin";
|
|
|
|
homepage = src.meta.homepage;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ mic92 dtzWill ];
|
|
|
|
};
|
|
|
|
}
|