metasploit: move to pkgs/by-name, modernize (#547266)

This commit is contained in:
Weijia Wang
2026-07-31 03:28:17 +00:00
committed by GitHub
7 changed files with 4 additions and 28 deletions

View File

@@ -27,6 +27,9 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-MPVgETy2JNvCPtnN/aQpBYMMPdHzQHI2dGy65kTZ5Do=";
};
__structuredAttrs = true;
strictDeps = true;
nativeBuildInputs = [
makeWrapper
];
@@ -51,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/msf}
mkdir -p $out/share/msf
cp -r * $out/share/msf

View File

@@ -1,25 +0,0 @@
{
pkgs ? import ../../../.. { },
}:
pkgs.mkShell {
nativeBuildInputs = [
pkgs.pkg-config
pkgs.libffi # libffi as native input
];
buildInputs = with pkgs; [
bundix
git
libiconv
libpcap
libxml2
libxslt
postgresql
ruby.devEnv
sqlite
];
# Ensure that pkg-config finds libffi
shellHook = ''
export PKG_CONFIG_PATH="${pkgs.libffi.out}/lib/pkgconfig:$PKG_CONFIG_PATH"
echo "PKG_CONFIG_PATH set to: $PKG_CONFIG_PATH"
'';
}

View File

@@ -2521,8 +2521,6 @@ with pkgs;
docbook-xsl = docbook_xsl;
};
metasploit = callPackage ../tools/security/metasploit { };
mtr-gui = mtr.override { withGtk = true; };
multitran = recurseIntoAttrs (