Files
nixpkgs/pkgs/by-name/on/one_gadget/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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;
};
}