2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, qt5, git, cmake
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, makeWrapper }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "panopticon";
|
|
|
|
version = "unstable-20171202";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "das-labor";
|
|
|
|
repo = pname;
|
|
|
|
rev = "33ffec0d6d379d51b38d6ea00d040f54b1356ae4";
|
|
|
|
sha256 = "1zv87nqhrzsxx0m891df4vagzssj3kblfv9yp7j96dw0vn9950qa";
|
|
|
|
};
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = with qt5; [
|
|
|
|
qt5.qtbase
|
|
|
|
qtdeclarative
|
|
|
|
qtsvg
|
|
|
|
qtquickcontrols2
|
|
|
|
qtgraphicaleffects
|
|
|
|
git
|
|
|
|
];
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "0vhcb3kw1zgchx3nrk8lyrz8p5071y99vsysxvi71klv7dcvn0am";
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/${pname} $out/bin
|
|
|
|
cp -R qml $out/share/${pname}
|
|
|
|
mv $out/bin/${pname} $out/share/${pname}
|
|
|
|
chmod +x $out/share/${pname}
|
|
|
|
makeWrapper $out/share/${pname}/${pname} $out/bin/${pname}
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A libre cross-platform disassembler";
|
|
|
|
longDescription = ''
|
|
|
|
Panopticon is a cross platform disassembler for reverse
|
|
|
|
engineering written in Rust. It can disassemble AMD64,
|
|
|
|
x86, AVR and MOS 6502 instruction sets and open ELF files.
|
|
|
|
Panopticon comes with Qt GUI for browsing and annotating
|
|
|
|
control flow graphs.
|
|
|
|
'';
|
|
|
|
license = with licenses; [ gpl3 ];
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
2024-04-21 15:54:59 +00:00
|
|
|
broken = true; # Added 2024-03-16
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|