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