mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 13:03:34 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
52 lines
1.4 KiB
Nix
52 lines
1.4 KiB
Nix
{ lib, fetchFromGitHub, rustPlatform, qt5, git, cmake
|
|
, pkg-config, makeWrapper }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "panopticon";
|
|
version = "unstable-20171202";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "das-labor";
|
|
repo = pname;
|
|
rev = "33ffec0d6d379d51b38d6ea00d040f54b1356ae4";
|
|
sha256 = "1zv87nqhrzsxx0m891df4vagzssj3kblfv9yp7j96dw0vn9950qa";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config makeWrapper ];
|
|
propagatedBuildInputs = with qt5; [
|
|
qt5.qtbase
|
|
qtdeclarative
|
|
qtsvg
|
|
qtquickcontrols2
|
|
qtgraphicaleffects
|
|
git
|
|
];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
cargoHash = "sha256-VQG7WTubznDi7trrnZIPB5SLfvYUzWxHh+z9wOdYDG4=";
|
|
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}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "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 ];
|
|
broken = true; # Added 2024-03-16
|
|
};
|
|
}
|