Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 55 lines 961 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 metasploit, 7 curl, 8 inetutils, 9 openssl, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "msfpc"; 14 version = "1.4.5"; 15 16 src = fetchFromGitHub { 17 owner = "g0tmi1k"; 18 repo = "msfpc"; 19 rev = "v${version}"; 20 sha256 = "UIdE0oSaNu16pf+M96x8AnNju88hdzokv86wm8uBYDQ="; 21 }; 22 23 nativeBuildInputs = [ 24 makeWrapper 25 ]; 26 27 installPhase = '' 28 runHook preInstall 29 30 install -Dm755 msfpc.sh $out/bin/msfpc 31 32 runHook postInstall 33 ''; 34 35 postFixup = '' 36 wrapProgram $out/bin/msfpc \ 37 --prefix PATH : "${ 38 lib.makeBinPath [ 39 metasploit 40 curl 41 inetutils 42 openssl 43 ] 44 }" 45 ''; 46 47 meta = with lib; { 48 description = "MSFvenom Payload Creator"; 49 mainProgram = "msfpc"; 50 homepage = "https://github.com/g0tmi1k/msfpc"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ emilytrau ]; 53 platforms = platforms.unix; 54 }; 55}