Skip to content

Instantly share code, notes, and snippets.

@spencerpogo
Created May 15, 2022 19:08
Show Gist options
  • Save spencerpogo/ac91a92d98b932558c63590daf5b5b12 to your computer and use it in GitHub Desktop.
Save spencerpogo/ac91a92d98b932558c63590daf5b5b12 to your computer and use it in GitHub Desktop.
pwninit nix
{ pkgs ? import <nixpkgs> { } }:
let
pname = "pwninit";
version = "3.2.0";
in pkgs.rustPlatform.buildRustPackage {
inherit pname version;
src = pkgs.fetchFromGitHub {
owner = "io12";
repo = "pwninit";
rev = version;
sha256 = "sha256-XKDYJH2SG3TkwL+FN6rXDap8la07icR0GPFiYcnOHeI=";
};
buildInputs = [ pkgs.xz.dev pkgs.openssl ];
nativeBuildInputs = [ pkgs.pkg-config ];
cargoSha256 = "sha256-2HCHiU309hbdwohUKVT3TEfGvOfxQWtEGj7FIS8OS7s=";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment