tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
metasploit: use makeWrapper instead
Joerg Thalheim
8 years ago
b775b2cd
e253ae7d
+8
-8
1 changed file
expand all
collapse all
unified
split
pkgs
tools
security
metasploit
default.nix
+8
-8
pkgs/tools/security/metasploit/default.nix
···
35
35
36
36
cp -r * $out/share/msf
37
37
38
38
-
for i in $out/share/msf/msf*; do
39
39
-
bin=$out/bin/$(basename $i)
40
40
-
cat > $bin <<EOF
41
41
-
#!/bin/sh -e
42
42
-
exec ${env}/bin/bundle exec ${ruby}/bin/ruby $i "\$@"
43
43
-
EOF
44
44
-
chmod +x $bin
45
45
-
done
38
38
+
(
39
39
+
cd $out/share/msf/
40
40
+
for i in msf*; do
41
41
+
makeWrapper ${env}/bin/bundle $out/bin/$i \
42
42
+
--add-flags "exec ${ruby}/bin/ruby $out/share/msf/$i"
43
43
+
done
44
44
+
)
45
45
+
46
46
'';
47
47
48
48
meta = with stdenv.lib; {