2022-07-18 16:21:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-08-12 12:06:08 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2022-07-18 16:21:45 +00:00
|
|
|
, pkg-config
|
2022-08-12 12:06:08 +00:00
|
|
|
, python3
|
2022-07-18 16:21:45 +00:00
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, radare2
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iaito";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "5.7.8";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
srcs = [
|
|
|
|
(fetchFromGitHub rec {
|
|
|
|
owner = "radareorg";
|
|
|
|
repo = "iaito";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-c36WLpVUnffeY6cXSEHvguo8BHyxaLAluN9hBKsQc0s=";
|
|
|
|
name = repo;
|
|
|
|
})
|
|
|
|
(fetchFromGitHub rec {
|
|
|
|
owner = "radareorg";
|
|
|
|
repo = "iaito-translations";
|
|
|
|
rev = "ab923335409fa298c39f0014588d78d926c6f3a2";
|
|
|
|
hash = "sha256-qkIC67a6YRwOa2Sr16Vg6If1TmAiSKUV7hw13Wxwl/w=";
|
|
|
|
name = repo;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
sourceRoot = "iaito/src";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postUnpack = ''
|
2022-12-17 10:02:37 +00:00
|
|
|
chmod -R u+w iaito-translations
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace common/ResourcePaths.cpp \
|
|
|
|
--replace "/app/share/iaito/translations" "$out/share/iaito/translations"
|
2022-07-18 16:21:45 +00:00
|
|
|
'';
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
qttools
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase
|
|
|
|
radare2
|
|
|
|
];
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
pushd ../../../iaito-translations
|
|
|
|
make build PREFIX=$out
|
|
|
|
popd
|
|
|
|
'';
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
install -m755 -Dt $out/bin iaito
|
2022-12-17 10:02:37 +00:00
|
|
|
install -m644 -Dt $out/share/metainfo ../org.radare.iaito.appdata.xml
|
|
|
|
install -m644 -Dt $out/share/applications ../org.radare.iaito.desktop
|
|
|
|
install -m644 -Dt $out/share/pixmaps ../img/iaito-o.svg
|
|
|
|
|
|
|
|
pushd ../../../iaito-translations
|
|
|
|
make install PREFIX=$out -j$NIX_BUILD_CORES
|
|
|
|
popd
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-08-12 12:06:08 +00:00
|
|
|
description = "An official graphical interface of radare2";
|
2022-07-18 16:21:45 +00:00
|
|
|
longDescription = ''
|
2022-08-12 12:06:08 +00:00
|
|
|
iaito is the official graphical interface of radare2. It's the
|
|
|
|
continuation of Cutter for radare2 after the Rizin fork.
|
2022-07-18 16:21:45 +00:00
|
|
|
'';
|
2022-08-12 12:06:08 +00:00
|
|
|
homepage = "https://radare.org/n/iaito.html";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/radareorg/iaito/releases/tag/${version}";
|
2022-07-18 16:21:45 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ azahi ];
|
2022-08-12 12:06:08 +00:00
|
|
|
platforms = platforms.linux;
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
}
|