Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchFromGitHub, makeWrapper, bundlerEnv }: 2 3stdenv.mkDerivation rec { 4 pname = "evil-winrm"; 5 version = "3.3"; 6 7 src = fetchFromGitHub { 8 owner = "Hackplayers"; 9 repo = "evil-winrm"; 10 rev = "v${version}"; 11 sha256 = "sha256-uWhRkq7I/XRWSUpR8lWRhDImE6x0pX9/B3gKhRIhkf8="; 12 }; 13 14 env = bundlerEnv { 15 name = pname; 16 gemfile = ./Gemfile; 17 lockfile = ./Gemfile.lock; 18 gemset = ./gemset.nix; 19 }; 20 21 nativeBuildInputs = [ makeWrapper ]; 22 buildInputs = [ env.wrappedRuby ]; 23 24 installPhase = '' 25 mkdir -p $out/bin 26 cp evil-winrm.rb $out/bin/evil-winrm 27 ''; 28 29 meta = with lib; { 30 homepage = "https://github.com/Hackplayers/evil-winrm"; 31 changelog = "https://github.com/Hackplayers/evil-winrm/releases/tag/v${version}"; 32 description = "WinRM shell for hacking/pentesting"; 33 license = licenses.lgpl3Plus; 34 maintainers = with maintainers; [ elohmeier ]; 35 }; 36}