metasploit: use makeWrapper instead

This commit is contained in:
Joerg Thalheim 2017-09-27 16:32:54 +01:00
parent e253ae7d3a
commit b775b2cd4f

View File

@ -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; {