Unverified Commit 513beabd authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

ropr: init at 0.2.26-unstable-2025-07-20 (#426551)

parents 742931e6 797e0cdf
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -8285,6 +8285,12 @@
    githubId = 92429150;
    name = "Paul Meinhold";
  };
  feyorsh = {
    email = "george@feyor.sh";
    github = "Feyorsh";
    githubId = 44840644;
    name = "George Huebner";
  };
  ffinkdevs = {
    email = "fink@h0st.space";
    github = "ffinkdevs";
+41 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  rustPlatform,
  versionCheckHook,
  nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "ropr";
  version = "0.2.26-unstable-2025-07-20";

  src = fetchFromGitHub {
    owner = "Ben-Lichtman";
    repo = "ropr";
    rev = "ec3eb2d91d9b4a940a8013a079ead47d7eab6dac";
    hash = "sha256-iN6CSivyBe6Ibbl+oQ2wThbSyHTKne14XsilkMntnfE=";
  };

  cargoHash = "sha256-4YEriANTAt1dx9bXhlHFN+kNLde+8BLocuhXdFG24xo=";

  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  doInstallCheck = true;
  preVersionCheck = ''
    version=${builtins.head (lib.splitString "-" finalAttrs.version)}
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Multithreaded ROP gadget finder for x86(_64)";
    homepage = "https://github.com/Ben-Lichtman/ropr";
    license = with lib.licenses; [
      mit
      asl20
    ];
    mainProgram = "ropr";
    maintainers = with lib.maintainers; [ feyorsh ];
  };
})