nixos-config/pkgs/msfpc/default.nix

22 lines
462 B
Nix
Raw Normal View History

2021-11-08 05:48:57 +00:00
{ stdenv
, fetchFromGitHub
, metasploit
}:
stdenv.mkDerivation rec {
pname = "msfpc";
version = "2021.01";
src = fetchFromGitHub {
owner = "g0tmi1k";
repo = "msfpc";
rev = "8007ef2142e43dc5e97edf84f40ac012f94a3e8f";
sha256 = "/FNhQcjIEIzB+wRKF2e3eYEnuVrl0egBZvjZidCwvHg=";
};
installPhase = ''
install -D ${src}/msfpc.sh $out/bin/msfpc
sed 's|## msfvenom installed?|PATH="$PATH:${metasploit}/bin"|' -i $out/bin/msfpc
'';
}