audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / bu / bully / package.nix
blob91cf6c834dfb76614f03f11f93b9dfd56cc02e50
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   libpcap,
6 }:
8 stdenv.mkDerivation rec {
9   pname = "bully";
10   version = "1.4-00";
12   src = fetchFromGitHub {
13     owner = "kimocoder";
14     repo = "bully";
15     rev = version;
16     sha256 = "1n2754a5z44g414a0hj3cmi9q5lwnzyvmvzskrj2nci8c8m2kgnf";
17   };
19   buildInputs = [ libpcap ];
21   enableParallelBuilding = true;
23   sourceRoot = "${src.name}/src";
25   installPhase = ''
26     install -Dm555 -t $out/bin bully
27     install -Dm444 -t $out/share/doc/${pname} ../*.md
28   '';
30   meta = with lib; {
31     description = "Retrieve WPA/WPA2 passphrase from a WPS enabled access point";
32     homepage = "https://github.com/kimocoder/bully";
33     license = licenses.gpl3;
34     maintainers = with maintainers; [ edwtjo ];
35     platforms = platforms.linux;
36     mainProgram = "bully";
37   };