summary refs log tree commit diff
path: root/pkgs/tools/networking/crackle/default.nix
blob: ea42e7a0b3208a60353b2dc4ee339964dfa03c86 (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
{ lib, stdenv, fetchFromGitHub, libpcap, coreutils }:

stdenv.mkDerivation {
  pname = "crackle";
  version = "unstable-2020-12-13";

  src = fetchFromGitHub {
    owner = "mikeryan";
    repo = "crackle";
    rev = "d83b4b6f4145ca53c46c36bbd7ccad751af76b75";
    sha256 = "sha256-Dy4s/hr9ySrogltyk2GVsuAvwNF5+b6CDjaD+2FaPHA=";
  };

  buildInputs = [ libpcap ];

  installFlags = [ "DESTDIR=$(out)" "PREFIX=" "INSTALL=${coreutils}/bin/install" ];

  meta = with lib; {
    description = "Crack and decrypt BLE encryption";
    homepage = "https://github.com/mikeryan/crackle";
    maintainers = with maintainers; [ moni ];
    license = licenses.bsd2;
  };
}