mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 02:06:46 +01:00
40 lines
851 B
Nix
40 lines
851 B
Nix
{ lib
|
|
, angr
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, progressbar
|
|
, pythonOlder
|
|
, tqdm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "angrop";
|
|
version = "9.0.10072";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "angr";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-FTKvGhONDUifwZhoKBXTZQFNbC/vTcHdLIge3j6U8uo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
angr
|
|
progressbar
|
|
tqdm
|
|
];
|
|
|
|
# Tests have additional requirements, e.g., angr binaries
|
|
# cle is executing the tests with the angr binaries already and is a requirement of angr
|
|
doCheck = false;
|
|
pythonImportsCheck = [ "angrop" ];
|
|
|
|
meta = with lib; {
|
|
description = "ROP gadget finder and chain builder";
|
|
homepage = "https://github.com/angr/angrop";
|
|
license = with licenses; [ bsd2 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|