mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
36 lines
749 B
Nix
36 lines
749 B
Nix
{
|
|
lib,
|
|
binutils-unwrapped,
|
|
bundlerApp,
|
|
bundlerUpdateScript,
|
|
makeWrapper,
|
|
}:
|
|
|
|
bundlerApp {
|
|
pname = "one_gadget";
|
|
gemdir = ./.;
|
|
exes = [ "one_gadget" ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postBuild = ''
|
|
wrapProgram $out/bin/one_gadget --prefix PATH : ${
|
|
binutils-unwrapped.override { withAllTargets = true; }
|
|
}/bin
|
|
'';
|
|
|
|
passthru.updateScript = bundlerUpdateScript "one_gadget";
|
|
|
|
meta = {
|
|
description = "Best tool for finding one gadget RCE in libc.so.6";
|
|
homepage = "https://github.com/david942j/one_gadget";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [
|
|
artemist
|
|
nicknovitski
|
|
];
|
|
mainProgram = "one_gadget";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|