1{stdenv, fetchFromGitHub, openssl, libpcap}:
2
3stdenv.mkDerivation rec {
4 name = "bully-${version}";
5 version = "1.0-22";
6 src = fetchFromGitHub {
7 sha256 = "0wk9jmcibd03gspnnr2qvfkw57rg94cwmi0kjpy1mgi05s6vlw1y";
8 rev = "v${version}";
9 repo = "bully";
10 owner = "Lrs121";
11 };
12 buildInputs = [ openssl libpcap ];
13
14 buildPhase = ''
15 cd src
16 make
17 '';
18
19 installPhase = ''
20 mkdir -p $out/bin
21 mv bully $out/bin
22 '';
23
24 meta = {
25 description = "Retrieve WPA/WPA2 passphrase from a WPS enabled access point";
26 homepage = https://github.com/Lrs121/bully;
27 maintainers = [ stdenv.lib.maintainers.edwtjo ];
28 license = stdenv.lib.licenses.gpl3;
29 };
30}