lol
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 libpcap,
6 coreutils,
7}:
8
9stdenv.mkDerivation {
10 pname = "crackle";
11 version = "unstable-2020-12-13";
12
13 src = fetchFromGitHub {
14 owner = "mikeryan";
15 repo = "crackle";
16 rev = "d83b4b6f4145ca53c46c36bbd7ccad751af76b75";
17 sha256 = "sha256-Dy4s/hr9ySrogltyk2GVsuAvwNF5+b6CDjaD+2FaPHA=";
18 };
19
20 buildInputs = [ libpcap ];
21
22 installFlags = [
23 "DESTDIR=$(out)"
24 "PREFIX="
25 "INSTALL=${coreutils}/bin/install"
26 ];
27
28 meta = with lib; {
29 description = "Crack and decrypt BLE encryption";
30 homepage = "https://github.com/mikeryan/crackle";
31 maintainers = with maintainers; [ moni ];
32 license = licenses.bsd2;
33 mainProgram = "crackle";
34 };
35}