aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/networking/bully/default.nix
blob: c9512392347edc9ea2c3a419288112383c65d08a (plain)
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
32
33
{ stdenv, fetchFromGitHub, openssl, libpcap }:

stdenv.mkDerivation rec {

  pname = "bully";
  version = "1.1";

  src = fetchFromGitHub {
    sha256 = "1qvbbf72ryd85bp4v62fk93ag2sn25rj7kipgagbv22hnq8yl3zd";
    rev = version;
    repo = "bully";
    owner = "aanarchyy";
  };
  buildInputs = [ openssl libpcap ];

  buildPhase = ''
    cd src
    make
  '';

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

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