biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / redfang / default.nix
blob776479d389a12bb71a2db7695d510f5fbe4276e1
1 { lib, stdenv, fetchFromGitLab, fetchpatch, bluez }:
3 stdenv.mkDerivation rec {
4   pname = "redfang";
5   version = "2.5";
7   src = fetchFromGitLab {
8     group = "kalilinux";
9     owner = "packages";
10     repo = pname;
11     rev = "upstream/${version}";
12     hash = "sha256-dF9QmBckyHAZ+JbLr0jTmp0eMu947unJqjrTMsJAfIE=";
13   };
15   patches = [
16     # make install rule
17     (fetchpatch {
18       url = "https://gitlab.com/kalilinux/packages/redfang/-/merge_requests/1.diff";
19       sha256 = "sha256-oxIrUAucxsBL4+u9zNNe2XXoAd088AEAHcRB/AN7B1M=";
20     })
21   ];
23   installFlags = [ "DESTDIR=$(out)" ];
25   env.NIX_CFLAGS_COMPILE = "-Wno-format-security";
27   buildInputs = [ bluez ];
29   meta = with lib; {
30     description = "Small proof-of-concept application to find non discoverable bluetooth devices";
31     homepage = "https://gitlab.com/kalilinux/packages/redfang";
32     license = licenses.gpl2Only;
33     maintainers = with maintainers; [ moni ];
34     mainProgram = "fang";
35   };