2015-02-25 16:19:44 +01:00
|
|
|
{stdenv, fetchFromGitHub, openssl, libpcap}:
|
2014-01-26 21:42:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bully-${version}";
|
|
|
|
version = "1.0-22";
|
2015-02-25 16:19:44 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
sha256 = "0wk9jmcibd03gspnnr2qvfkw57rg94cwmi0kjpy1mgi05s6vlw1y";
|
|
|
|
rev = "v${version}";
|
|
|
|
repo = "bully";
|
|
|
|
owner = "Lrs121";
|
2014-01-26 21:42:18 +01:00
|
|
|
};
|
|
|
|
buildInputs = [ openssl libpcap ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
cd src
|
|
|
|
make
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv bully $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-11-11 14:20:43 +01:00
|
|
|
description = "Retrieve WPA/WPA2 passphrase from a WPS enabled access point";
|
2015-02-25 16:19:44 +01:00
|
|
|
homepage = https://github.com/Lrs121/bully;
|
2014-01-26 21:42:18 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.edwtjo ];
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
};
|
2015-02-25 16:19:44 +01:00
|
|
|
}
|