Skip to content

Commit

Permalink
metasploit: use makeWrapper instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 27, 2017
1 parent e253ae7 commit b775b2c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkgs/tools/security/metasploit/default.nix
Expand Up @@ -35,14 +35,14 @@ in stdenv.mkDerivation rec {
cp -r * $out/share/msf
for i in $out/share/msf/msf*; do
bin=$out/bin/$(basename $i)
cat > $bin <<EOF
#!/bin/sh -e
exec ${env}/bin/bundle exec ${ruby}/bin/ruby $i "\$@"
EOF
chmod +x $bin
done
(
cd $out/share/msf/
for i in msf*; do
makeWrapper ${env}/bin/bundle $out/bin/$i \
--add-flags "exec ${ruby}/bin/ruby $out/share/msf/$i"
done
)
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit b775b2c

Please sign in to comment.