2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libpcap }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bully";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "1.4-00";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-18 16:06:22 +00:00
|
|
|
owner = "kimocoder";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "bully";
|
2020-07-18 16:06:22 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "1n2754a5z44g414a0hj3cmi9q5lwnzyvmvzskrj2nci8c8m2kgnf";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
buildInputs = [ libpcap ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
sourceRoot = "${src.name}/src";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2020-07-18 16:06:22 +00:00
|
|
|
install -Dm555 -t $out/bin bully
|
|
|
|
install -Dm444 -t $out/share/doc/${pname} ../*.md
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Retrieve WPA/WPA2 passphrase from a WPS enabled access point";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/kimocoder/bully";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "bully";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|