evil-winrm: refactor

- update changelog entry
This commit is contained in:
Fabian Affolter 2023-10-19 15:52:42 +02:00 committed by GitHub
parent 545ac55f77
commit caa9d4ac43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,9 @@
{ stdenv, lib, fetchFromGitHub, makeWrapper, bundlerEnv }:
{ lib
, stdenv
, fetchFromGitHub
, makeWrapper
, bundlerEnv
}:
stdenv.mkDerivation rec {
pname = "evil-winrm";
@ -7,8 +12,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "Hackplayers";
repo = "evil-winrm";
rev = "v${version}";
sha256 = "sha256-8Lyo7BgypzrHMEcbYlxo/XWwOtBqs2tczYnc3+XEbeA=";
rev = "refs/tags/v${version}";
hash = "sha256-8Lyo7BgypzrHMEcbYlxo/XWwOtBqs2tczYnc3+XEbeA=";
};
env = bundlerEnv {
@ -18,8 +23,13 @@ stdenv.mkDerivation rec {
gemset = ./gemset.nix;
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ env.wrappedRuby ];
nativeBuildInputs = [
makeWrapper
];
buildInputs = [
env.wrappedRuby
];
installPhase = ''
mkdir -p $out/bin
@ -27,9 +37,9 @@ stdenv.mkDerivation rec {
'';
meta = with lib; {
homepage = "https://github.com/Hackplayers/evil-winrm";
changelog = "https://github.com/Hackplayers/evil-winrm/releases/tag/v${version}";
description = "WinRM shell for hacking/pentesting";
homepage = "https://github.com/Hackplayers/evil-winrm";
changelog = "https://github.com/Hackplayers/evil-winrm/blob/v${version}/CHANGELOG.md";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ elohmeier ];
};