From a082b5df6863dbf7e75d389185965740eb89cfc5 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Fri, 11 Apr 2008 10:40:30 +0000 Subject: [PATCH] Now msfweb works with user-installed Ruby on rails. svn path=/nixpkgs/trunk/; revision=11567 --- pkgs/tools/security/metasploit/3.1.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/security/metasploit/3.1.nix b/pkgs/tools/security/metasploit/3.1.nix index 0c8a6e9688a3..8b5e0496d65b 100644 --- a/pkgs/tools/security/metasploit/3.1.nix +++ b/pkgs/tools/security/metasploit/3.1.nix @@ -13,12 +13,11 @@ rec { ensureDir $out/bin cp -r * $out/share/msf - ln -s $out/share/msf/msf* $out/bin - sed -e 's@#!/usr/bin/env ruby@#! ${ruby}/bin/ruby@' -i $out/bin/msf* + sed -e 's@#!/usr/bin/env ruby@#! ${ruby}/bin/ruby@' -i $out/share/msf/msf* - for i in $out/bin/*; do - wrapProgram $i --prefix RUBYLIB : $out/share/msf/lib + for i in $out/share/msf/msf*; do + makeWrapper $i $out/bin/$(basename $i) --prefix RUBYLIB : $out/share/msf/lib done '') ["minInit" "defEnsureDir" "doUnpack" "addInputs"];