Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 versionCheckHook,
6 nix-update-script,
7}:
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "ropr";
10 version = "0.2.26-unstable-2025-07-20";
11
12 src = fetchFromGitHub {
13 owner = "Ben-Lichtman";
14 repo = "ropr";
15 rev = "ec3eb2d91d9b4a940a8013a079ead47d7eab6dac";
16 hash = "sha256-iN6CSivyBe6Ibbl+oQ2wThbSyHTKne14XsilkMntnfE=";
17 };
18
19 cargoHash = "sha256-4YEriANTAt1dx9bXhlHFN+kNLde+8BLocuhXdFG24xo=";
20
21 nativeInstallCheckInputs = [
22 versionCheckHook
23 ];
24 doInstallCheck = true;
25 preVersionCheck = ''
26 version=${builtins.head (lib.splitString "-" finalAttrs.version)}
27 '';
28
29 passthru.updateScript = nix-update-script { };
30
31 meta = {
32 description = "Multithreaded ROP gadget finder for x86(_64)";
33 homepage = "https://github.com/Ben-Lichtman/ropr";
34 license = with lib.licenses; [
35 mit
36 asl20
37 ];
38 mainProgram = "ropr";
39 maintainers = with lib.maintainers; [ feyorsh ];
40 };
41})