diff options
author | Joerg Thalheim <joerg@thalheim.io> | 2017-09-27 16:32:54 +0100 |
---|---|---|
committer | Joerg Thalheim <joerg@thalheim.io> | 2017-09-27 16:34:09 +0100 |
commit | b775b2cd4fd3d7ceeda1b0b7fd6f7110c2ffee68 (patch) | |
tree | 89ca1a8a79353afb74fcea68cbba2233b53e035b /pkgs/tools/security/metasploit | |
parent | e253ae7d3a4ab992d2432c87514e3333a3cf744d (diff) |
metasploit: use makeWrapper instead
Diffstat (limited to 'pkgs/tools/security/metasploit')
-rw-r--r-- | pkgs/tools/security/metasploit/default.nix | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/tools/security/metasploit/default.nix b/pkgs/tools/security/metasploit/default.nix index 15a30db522eb0..37796fef1747e 100644 --- a/pkgs/tools/security/metasploit/default.nix +++ b/pkgs/tools/security/metasploit/default.nix @@ -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; { |