metasploit: add passthru.updateScript
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
{ stdenv, fetchFromGitHub, makeWrapper, ruby, bundlerEnv }:
|
||||
|
||||
# Maintainer notes for updating:
|
||||
# 1. increment version number in expression and in Gemfile
|
||||
# 2. run $ nix-shell --command "bundler install && bundix"
|
||||
# in metasploit in nixpkgs
|
||||
# 3. run $ sed -i '/[ ]*dependencies =/d' gemset.nix
|
||||
# 4. run $ nix-build -A metasploit ../../../../
|
||||
# 5. update sha256sum in expression
|
||||
# 6. run step 3 again
|
||||
|
||||
let
|
||||
env = bundlerEnv {
|
||||
inherit ruby;
|
||||
@@ -45,6 +36,9 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
'';
|
||||
|
||||
# run with: nix-shell maintainers/scripts/update.nix --argstr path metasploit
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Metasploit Framework - a collection of exploits";
|
||||
homepage = "https://github.com/rapid7/metasploit-framework/wiki";
|
||||
|
||||
Reference in New Issue
Block a user