summary refs log tree commit diff
path: root/pkgs/tools/networking/bully/default.nix
blob: 3410d0e2c5c97c867c30ab1e888dd8e139941872 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{stdenv, fetchFromGitHub, openssl, libpcap}:

stdenv.mkDerivation rec {
  name = "bully-${version}";
  version = "1.0-22";
  src = fetchFromGitHub {
    sha256 = "0wk9jmcibd03gspnnr2qvfkw57rg94cwmi0kjpy1mgi05s6vlw1y";
    rev = "v${version}";
    repo = "bully";
    owner = "HorayNarea";
  };
  buildInputs = [ openssl libpcap ];

  buildPhase = ''
    cd src
    make
  '';

  installPhase = ''
    mkdir -p $out/bin
    mv bully $out/bin
  '';

  meta = {
    description = "Retrieve WPA/WPA2 passphrase from a WPS enabled access point";
    homepage = https://github.com/Lrs121/bully;
    maintainers = [ stdenv.lib.maintainers.edwtjo ];
    license = stdenv.lib.licenses.gpl3;
    platforms = stdenv.lib.platforms.linux;
  };
}