18 main_src = fetchFromGitHub rec {
21 rev = "refs/tags/${version}";
22 hash = "sha256-o+DeHifhixWwFX6V/sDXou46rrz5qeQ1Ky8UaAVyDPM=";
26 translations_src = fetchFromGitHub rec {
28 repo = "iaito-translations";
29 rev = "e66b3a962a7fc7dfd730764180011ecffbb206bf";
30 hash = "sha256-6NRTZ/ydypsB5TwbivvwOH9TEMAff/LH69hCXTvMPp8=";
34 stdenv.mkDerivation (finalAttrs: {
35 inherit pname version;
37 srcs = [ main_src translations_src ];
38 sourceRoot = "${main_src.name}/src";
41 chmod -R u+w ${translations_src.name}
45 substituteInPlace common/ResourcePaths.cpp \
46 --replace "/app/share/iaito/translations" "$out/share/iaito/translations"
64 pushd ../../../${translations_src.name}
65 make build -j$NIX_BUILD_CORES PREFIX=$out
72 install -m755 -Dt $out/bin iaito
73 install -m644 -Dt $out/share/metainfo ../org.radare.iaito.appdata.xml
74 install -m644 -Dt $out/share/applications ../org.radare.iaito.desktop
75 install -m644 -Dt $out/share/pixmaps ../img/org.radare.iaito.svg
77 pushd ../../../${translations_src.name}
78 make install -j$NIX_BUILD_CORES PREFIX=$out
85 description = "Official Qt frontend of radare2";
87 iaito is the official graphical interface for radare2, a libre reverse
88 engineering framework.
90 homepage = "https://radare.org/n/iaito.html";
91 changelog = "https://github.com/radareorg/iaito/releases/tag/${finalAttrs.version}";
92 license = licenses.gpl3Only;
93 maintainers = with maintainers; [ azahi ];
94 mainProgram = "iaito";
95 platforms = platforms.linux;