mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
36 lines
815 B
Nix
36 lines
815 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, openssl
|
|
, pkg-config
|
|
, xz
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "pwninit";
|
|
version = "3.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "io12";
|
|
repo = "pwninit";
|
|
rev = version;
|
|
sha256 = "sha256-Tskbwavr+MFa8wmwaFGe7o4/6ZpZqczzwOnqFR66mmM=";
|
|
};
|
|
|
|
buildInputs = [ openssl xz ] ++ lib.optionals stdenv.isDarwin [ Security ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
doCheck = false; # there are no tests to run
|
|
|
|
cargoSha256 = "sha256-LPypmFeF9NZOX1ogpIqc++Pun7pInKzpxYiGUvSUcso=";
|
|
|
|
meta = {
|
|
description = "Automate starting binary exploit challenges";
|
|
homepage = "https://github.com/io12/pwninit";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.scoder12 ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|