Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 capstone,
7}:
8
9buildPythonPackage rec {
10 pname = "ropgadget";
11 version = "7.7";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "JonathanSalwan";
16 repo = "ROPgadget";
17 tag = "v${version}";
18 hash = "sha256-fKvXxz5SbrUynG/9pV6KMIxCVFU9l192oFJFB9HHBz0=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ capstone ];
24
25 # Test suite is working with binaries
26 doCheck = false;
27
28 pythonImportsCheck = [ "ropgadget" ];
29
30 meta = {
31 description = "Tool to search for gadgets in binaries to facilitate ROP exploitation";
32 mainProgram = "ROPgadget";
33 homepage = "http://shell-storm.org/project/ROPgadget/";
34 license = lib.licenses.bsd3;
35 maintainers = with lib.maintainers; [ bennofs ];
36 };
37}