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>
39 lines
731 B
Nix
39 lines
731 B
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
python3,
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "shellnoob";
|
|
version = "unstable-2022-03-16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "reyammer";
|
|
repo = "shellnoob";
|
|
rev = "72cf49804d8ea3de1faa7fae5794449301987bff";
|
|
sha256 = "xF9OTFFe8godW4+z9MFaFEkjE9FB42bKWwdl9xRcmEo=";
|
|
};
|
|
|
|
buildInputs = [
|
|
python3
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 shellnoob.py $out/bin/snoob
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "Shellcode writing toolkit";
|
|
homepage = "https://github.com/reyammer/shellnoob";
|
|
mainProgram = "snoob";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ emilytrau ];
|
|
};
|
|
}
|