2020-06-24 01:49:07 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libpcap }:
|
2014-01-26 20:42:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "bully";
|
2020-06-24 01:49:07 +01:00
|
|
|
version = "1.4-00";
|
2017-10-27 08:03:03 +01:00
|
|
|
|
2015-02-25 15:19:44 +00:00
|
|
|
src = fetchFromGitHub {
|
2020-06-24 01:49:07 +01:00
|
|
|
owner = "kimocoder";
|
2015-02-25 15:19:44 +00:00
|
|
|
repo = "bully";
|
2020-06-24 01:49:07 +01:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1n2754a5z44g414a0hj3cmi9q5lwnzyvmvzskrj2nci8c8m2kgnf";
|
2014-01-26 20:42:18 +00:00
|
|
|
};
|
|
|
|
|
2020-06-24 01:49:07 +01:00
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
sourceRoot = "./source/src";
|
2014-01-26 20:42:18 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2020-06-24 01:49:07 +01:00
|
|
|
install -Dm555 -t $out/bin bully
|
|
|
|
install -Dm444 -t $out/share/doc/${pname} ../*.md
|
2014-01-26 20:42:18 +00:00
|
|
|
'';
|
|
|
|
|
2017-10-27 08:03:03 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-11-11 13:20:43 +00:00
|
|
|
description = "Retrieve WPA/WPA2 passphrase from a WPS enabled access point";
|
2020-06-24 01:49:07 +01:00
|
|
|
homepage = "https://github.com/kimocoder/bully";
|
2017-10-27 08:03:03 +01:00
|
|
|
license = licenses.gpl3;
|
2020-06-24 01:49:07 +01:00
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
2017-10-27 08:03:03 +01:00
|
|
|
platforms = platforms.linux;
|
2014-01-26 20:42:18 +00:00
|
|
|
};
|
2015-02-25 15:19:44 +00:00
|
|
|
}
|