nixpkgs-suyu/pkgs/tools/networking/reaver-wps-t6x/default.nix

32 lines
797 B
Nix
Raw Normal View History

2017-11-08 17:42:41 +01:00
{ stdenv, fetchFromGitHub, libpcap, pixiewps, makeWrapper }:
2016-10-25 21:49:08 +02:00
stdenv.mkDerivation rec {
2017-11-08 17:42:41 +01:00
version = "1.6.3";
2016-10-25 21:49:08 +02:00
name = "reaver-wps-t6x-${version}";
src = fetchFromGitHub {
owner = "t6x";
repo = "reaver-wps-fork-t6x";
rev = "v${version}";
2017-11-08 17:42:41 +01:00
sha256 = "1bccwp67q1q0h5m38gqxn9imq5rb75jbmv7fjr2n38v10jcga2pb";
2016-10-25 21:49:08 +02:00
};
nativeBuildInputs = [ makeWrapper ];
2017-11-08 17:42:41 +01:00
buildInputs = [ libpcap pixiewps ];
2016-10-25 21:49:08 +02:00
2017-11-08 17:42:41 +01:00
preConfigure = "cd src";
2016-10-25 21:49:08 +02:00
installPhase = ''
2017-11-08 17:42:41 +01:00
mkdir -p $out/bin
cp reaver wash $out/bin/
'';
meta = with stdenv.lib; {
2016-10-25 21:49:08 +02:00
description = "Online and offline brute force attack against WPS";
homepage = https://github.com/t6x/reaver-wps-fork-t6x;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ nico202 volth ];
2016-10-25 21:49:08 +02:00
};
}