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