From e2b2b59a4d9021937b70b6fab6d64c1d1e335327 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 11 Oct 2021 13:28:57 +0200 Subject: [PATCH] cameradar: init at 5.0.1 --- pkgs/tools/security/cameradar/default.nix | 41 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 43 insertions(+) create mode 100644 pkgs/tools/security/cameradar/default.nix diff --git a/pkgs/tools/security/cameradar/default.nix b/pkgs/tools/security/cameradar/default.nix new file mode 100644 index 000000000000..569be38ee28a --- /dev/null +++ b/pkgs/tools/security/cameradar/default.nix @@ -0,0 +1,41 @@ +{ lib +, buildGoModule +, curl +, fetchFromGitHub +, pkg-config +}: + +buildGoModule rec { + pname = "cameradar"; + version = "5.0.1"; + + src = fetchFromGitHub { + owner = "Ullaakut"; + repo = pname; + rev = "v${version}"; + sha256 = "03nm03cqhq04ixw4rssfkgrin918pa0v7ai26v4h99gz7j8hs7ll"; + }; + + vendorSha256 = "099np130dn51nb4lcyrrm46fihfipxrw0vpqs2jh5g4c6pnbk200"; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + curl + ]; + + subPackages = [ + "cmd/cameradar" + ]; + # At least one test is outdated + #doCheck = false; + + meta = with lib; { + description = "RTSP stream access tool"; + homepage = "https://github.com/Ullaakut/cameradar"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99ecabf12089..00310c8c84cb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2279,6 +2279,8 @@ with pkgs; calendar-cli = callPackage ../tools/networking/calendar-cli { }; + cameradar = callPackage ../tools/security/cameradar { }; + candle = libsForQt5.callPackage ../applications/misc/candle { }; capstone = callPackage ../development/libraries/capstone { };