Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchFromGitHub, 4 stdenvNoCC, 5}: 6 7stdenvNoCC.mkDerivation { 8 pname = "powersploit"; 9 version = "3.0.0-unstable-2020-08-22"; 10 11 src = fetchFromGitHub { 12 owner = "PowerShellMafia"; 13 repo = "PowerSploit"; 14 rev = "d943001a7defb5e0d1657085a77a0e78609be58f"; 15 hash = "sha256-xVMCB8siyYc8JI7vjlUdO93jI3Qh054F/4CCZyGe75c="; 16 }; 17 18 installPhase = '' 19 runHook preInstall 20 mkdir -p $out/share/windows/powersploit 21 cp -a * $out/share/windows/powersploit 22 find $out/share/windows -type f -exec chmod -x {} \; 23 runHook postInstall 24 ''; 25 26 meta = { 27 changelog = "https://github.com/PowerShellMafia/PowerSploit/releases/"; 28 description = "PowerShell Post-Exploitation Framework"; 29 license = with lib.licenses; [ bsd3 ]; 30 maintainers = with lib.maintainers; [ shard7 ]; 31 platforms = lib.platforms.all; 32 sourceProvenance = with lib.sourceTypes; [ fromSource ]; 33 }; 34}