mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
39 lines
878 B
Nix
39 lines
878 B
Nix
{ lib, stdenv, fetchFromGitHub, makeWrapper, metasploit, curl, inetutils, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "msfpc";
|
|
version = "1.4.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "g0tmi1k";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "UIdE0oSaNu16pf+M96x8AnNju88hdzokv86wm8uBYDQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
makeWrapper
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 msfpc.sh $out/bin/msfpc
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/msfpc \
|
|
--prefix PATH : "${lib.makeBinPath [ metasploit curl inetutils openssl ]}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "MSFvenom Payload Creator";
|
|
mainProgram = "msfpc";
|
|
homepage = "https://github.com/g0tmi1k/msfpc";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|