depot/pkgs/development/tools/misc/one_gadget/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

24 lines
661 B
Nix

{ lib, binutils, bundlerApp, bundlerUpdateScript, makeWrapper }:
bundlerApp {
pname = "one_gadget";
gemdir = ./.;
exes = [ "one_gadget" ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
wrapProgram $out/bin/one_gadget --prefix PATH : ${binutils}/bin
'';
passthru.updateScript = bundlerUpdateScript "one_gadget";
meta = with lib; {
description = "Best tool for finding one gadget RCE in libc.so.6";
homepage = "https://github.com/david942j/one_gadget";
license = licenses.mit;
maintainers = with maintainers; [ artemist nicknovitski ];
mainProgram = "one_gadget";
platforms = platforms.unix;
};
}