summary refs log tree commit diff
path: root/pkgs/tools/networking/redfang
diff options
context:
space:
mode:
authorfortuneteller2k <lythe1107@gmail.com>2021-06-09 21:58:50 +0800
committerfortuneteller2k <lythe1107@gmail.com>2021-06-10 15:04:42 +0800
commit9c885c9091e7fdc5df35784b18ae94d61ffcd53d (patch)
treeb5fa8f0778b731b4cdd514944776b7818df5f7f8 /pkgs/tools/networking/redfang
parent0e6c55f5d193379fe3daf2829ee4305a309b327d (diff)
downloadnixpkgs-9c885c9091e7fdc5df35784b18ae94d61ffcd53d.tar
nixpkgs-9c885c9091e7fdc5df35784b18ae94d61ffcd53d.tar.gz
nixpkgs-9c885c9091e7fdc5df35784b18ae94d61ffcd53d.tar.bz2
nixpkgs-9c885c9091e7fdc5df35784b18ae94d61ffcd53d.tar.lz
nixpkgs-9c885c9091e7fdc5df35784b18ae94d61ffcd53d.tar.xz
nixpkgs-9c885c9091e7fdc5df35784b18ae94d61ffcd53d.tar.zst
nixpkgs-9c885c9091e7fdc5df35784b18ae94d61ffcd53d.zip
redfang: init at 2.5
Diffstat (limited to 'pkgs/tools/networking/redfang')
-rw-r--r--pkgs/tools/networking/redfang/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/networking/redfang/default.nix b/pkgs/tools/networking/redfang/default.nix
new file mode 100644
index 00000000000..9e18d687dc0
--- /dev/null
+++ b/pkgs/tools/networking/redfang/default.nix
@@ -0,0 +1,35 @@
+{ lib, stdenv, fetchFromGitLab, fetchpatch, bluez }:
+
+stdenv.mkDerivation rec {
+  pname = "redfang";
+  version = "2.5";
+
+  src = fetchFromGitLab {
+    group = "kalilinux";
+    owner = "packages";
+    repo = pname;
+    rev = "upstream/${version}";
+    sha256 = "sha256-dF9QmBckyHAZ+JbLr0jTmp0eMu947unJqjrTMsJAfIE=";
+  };
+
+  patches = [
+    # make install rule
+    (fetchpatch {
+      url = "https://gitlab.com/kalilinux/packages/redfang/-/merge_requests/1.diff";
+      sha256 = "sha256-oxIrUAucxsBL4+u9zNNe2XXoAd088AEAHcRB/AN7B1M=";
+    })
+  ];
+
+  installFlags = [ "DESTDIR=$(out)" ];
+
+  NIX_CFLAGS_COMPILE = "-Wno-format-security";
+
+  buildInputs = [ bluez ];
+
+  meta = with lib; {
+    description = "A small proof-of-concept application to find non discoverable bluetooth devices";
+    homepage = "https://gitlab.com/kalilinux/packages/redfang";
+    license = licenses.gpl2Only;
+    maintainers = with maintainers; [ fortuneteller2k ];
+  };
+}