nixpkgs/pkgs/tools/security/metasploit/3.1.nix
Eelco Dolstra 7f5b839524 * Removed selectVersion. There's no good reason to write
`selectVersion ./foo "bar"' instead of `import ./foo/bar.nix'.
* Replaced `with args' with formal function arguments in several
  packages.
* Renamed several files to `default.nix'.  As a general rule, version
  numbers should only be included in the filename when there is a
  reason to keep multiple versions of a package in Nixpkgs.
  Otherwise, it just makes it harder to update the package.

svn path=/nixpkgs/trunk/; revision=18403
2009-11-18 09:39:59 +00:00

32 lines
854 B
Nix

args : with args;
rec {
src = fetchurl {
url = http://www.packetstormsecurity.nl/UNIX/utilities/framework-3.1.tar.gz;
sha256 = "114znq9dfcyh9gcj57p3zsc0d0amlzhwidmg8qjcgxpjh28h1afx";
};
buildInputs = [makeWrapper];
configureFlags = [];
doInstall = fullDepEntry(''
ensureDir $out/share/msf
ensureDir $out/bin
cp -r * $out/share/msf
for i in $out/share/msf/msf*; do
makeWrapper $i $out/bin/$(basename $i) --prefix RUBYLIB : $out/share/msf/lib
done
'') ["minInit" "defEnsureDir" "doUnpack" "addInputs"];
/* doConfigure should be specified separately */
phaseNames = ["doInstall" (doPatchShebangs "$out/share/msf")];
name = "metasploit-framework-3.1";
meta = {
description = "Metasploit Framework - a collection of exploits";
homepage = "http://framework.metasploit.org/";
};
}