3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #142255 from p-h/metasploit-fix-python-modules

metasploit: Fix python modules
This commit is contained in:
Fabian Affolter 2021-11-07 11:04:53 +01:00 committed by GitHub
commit 54ef803bf8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,7 @@
, makeWrapper
, ruby
, bundlerEnv
, python3
}:
let
@ -24,6 +25,7 @@ in stdenv.mkDerivation rec {
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ (python3.withPackages (ps: [ ps.requests ])) ];
dontPatchELF = true; # stay away from exploit executables
@ -32,6 +34,8 @@ in stdenv.mkDerivation rec {
cp -r * $out/share/msf
grep -rl "^#\!.*python2$" $out/share/msf | xargs -d '\n' rm
(
cd $out/share/msf/
for i in msf*; do