Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rp: init at 2.1.4 #390159

Merged
merged 2 commits into from
Mar 19, 2025
Merged

rp: init at 2.1.4 #390159

merged 2 commits into from
Mar 19, 2025

Conversation

sportshead
Copy link
Contributor

@sportshead sportshead commented Mar 15, 2025

rp++ or rp is a C++ ROP gadget finder for PE/ELF/Mach-O executables and x86/x64/ARM/ARM64 architectures.

https://github.com/0vercl0k/rp

Changelog: https://github.com/0vercl0k/rp/releases/tag/v2.1.4

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@github-actions github-actions bot added the 8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` label Mar 15, 2025
@NixOSInfra NixOSInfra added the 12. first-time contribution This PR is the author's first one; please be gentle! label Mar 15, 2025
@haylinmoore
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 390159


x86_64-linux

✅ 1 package built:
  • rp

Copy link
Contributor

@haylinmoore haylinmoore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm and output rp binary works

@wegank wegank added the 12.approvals: 1 This PR was reviewed and approved by one reputable person label Mar 16, 2025
Copy link
Contributor

@matthiasbeyer matthiasbeyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is somehow a convention to order the attributes as follows:

  • pname
  • version
  • src
  • sourceRoot
  • *inputs
  • *Phase
  • meta

But it doesn't really matter. I also annotated some stuff that I would have done differently, but doesn't really matter either.

As you already waited 4 days for your first-time-contribution, I wouldn't wait for another iteration here and go ahead and merge this.

Welcome to the community! 🎉

cmake
ninja
];
buildInputs = lib.optionals (stdenv.isLinux) [ stdenv.cc.libc.static ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The parentheses here are not required AFAIK.

Suggested change
buildInputs = lib.optionals (stdenv.isLinux) [ stdenv.cc.libc.static ];
buildInputs = lib.optionals stdenv.isLinux [ stdenv.cc.libc.static ];

Comment on lines +26 to +29
installPhase = ''
mkdir -p $out/bin
cp rp-${if stdenv.isDarwin then "osx" else "lin"} $out/bin/rp
'';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, but I would have written it like this:

Suggested change
installPhase = ''
mkdir -p $out/bin
cp rp-${if stdenv.isDarwin then "osx" else "lin"} $out/bin/rp
'';
installPhase = let
binname = if stdenv.isDarwin
then "rp-osx"
else "rp-lin";
in ''
mkdir -p $out/bin
cp ${binname} $out/bin/rp
'';

@matthiasbeyer
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 390159


x86_64-linux

✅ 1 package built:
  • rp

@matthiasbeyer matthiasbeyer merged commit 7fdcf46 into NixOS:master Mar 19, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.has: maintainer-list (update) This PR changes `maintainers/maintainer-list.nix` 10.rebuild-darwin: 1-10 10.rebuild-darwin: 1 10.rebuild-linux: 1-10 10.rebuild-linux: 1 12.approvals: 1 This PR was reviewed and approved by one reputable person 12. first-time contribution This PR is the author's first one; please be gentle!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants