frigate: fix event preview (#372427)
[NixPkgs.git] / pkgs / by-name / ev / evil-winrm / package.nix
blob81acdce03071254dad767bc3c2828490aa1f9da7
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , makeWrapper
5 , bundlerEnv
6 }:
8 stdenv.mkDerivation rec {
9   pname = "evil-winrm";
10   version = "3.5";
12   src = fetchFromGitHub {
13     owner = "Hackplayers";
14     repo = "evil-winrm";
15     tag = "v${version}";
16     hash = "sha256-8Lyo7BgypzrHMEcbYlxo/XWwOtBqs2tczYnc3+XEbeA=";
17   };
19   env = bundlerEnv {
20     name = pname;
21     gemfile = ./Gemfile;
22     lockfile = ./Gemfile.lock;
23     gemset = ./gemset.nix;
24   };
26   nativeBuildInputs = [
27     makeWrapper
28   ];
30   buildInputs = [
31     env.wrappedRuby
32   ];
34   installPhase = ''
35     mkdir -p $out/bin
36     cp evil-winrm.rb $out/bin/evil-winrm
37   '';
39   meta = with lib; {
40     description = "WinRM shell for hacking/pentesting";
41     mainProgram = "evil-winrm";
42     homepage = "https://github.com/Hackplayers/evil-winrm";
43     changelog = "https://github.com/Hackplayers/evil-winrm/blob/v${version}/CHANGELOG.md";
44     license = licenses.lgpl3Plus;
45   };