@@ -1,14 +1,5 @@
11{ stdenv, fetchFromGitHub, makeWrapper, ruby, bundlerEnv }:
22
3−# Maintainer notes for updating:
4−# 1. increment version number in expression and in Gemfile
5−# 2. run $ nix-shell --command "bundler install && bundix"
6−# in metasploit in nixpkgs
7−# 3. run $ sed -i '/[ ]*dependencies =/d' gemset.nix
8−# 4. run $ nix-build -A metasploit ../../../../
9−# 5. update sha256sum in expression
10−# 6. run step 3 again
11−
123let
134 env = bundlerEnv {
145 inherit ruby;
@@ -45,6 +36,9 @@ in stdenv.mkDerivation rec {
4536
4637 '';
4738
39+ # run with: nix-shell maintainers/scripts/update.nix --argstr path metasploit
40+ passthru.updateScript = ./update.sh;
41+
4842 meta = with stdenv.lib; {
4943 description = "Metasploit Framework - a collection of exploits";
5044 homepage = "https://github.com/rapid7/metasploit-framework/wiki";