mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
metasploit: move to pkgs/by-name, modernize (#547266)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
'';
|
||||
}
|
||||
@@ -2521,8 +2521,6 @@ with pkgs;
|
||||
docbook-xsl = docbook_xsl;
|
||||
};
|
||||
|
||||
metasploit = callPackage ../tools/security/metasploit { };
|
||||
|
||||
mtr-gui = mtr.override { withGtk = true; };
|
||||
|
||||
multitran = recurseIntoAttrs (
|
||||
|
||||
Reference in New Issue
Block a user