nixpkgs/pkgs/tools/security/cameradar/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
939 B
Nix
Raw Normal View History

2021-10-11 11:28:57 +00:00
{ lib
, buildGoModule
, curl
, fetchFromGitHub
, pkg-config
}:
buildGoModule rec {
pname = "cameradar";
2022-03-21 02:02:38 +00:00
version = "5.0.2";
2021-10-11 11:28:57 +00:00
src = fetchFromGitHub {
owner = "Ullaakut";
repo = pname;
rev = "v${version}";
2022-03-21 02:02:38 +00:00
sha256 = "sha256-GOqmz/aiOLGMfs9rQBIEQSgBycPzhu8BohcAc2U+gBw=";
2021-10-11 11:28:57 +00:00
};
2022-03-21 02:02:38 +00:00
vendorSha256 = "sha256-AIi57DWMvAKl0PhuwHO/0cHoDKk5e0bJsqHYBka4NiU=";
2021-10-11 11:28:57 +00:00
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 ];
2023-05-30 17:51:10 +00:00
# Upstream issue, doesn't build with latest curl, see
# https://github.com/Ullaakut/cameradar/issues/320
# https://github.com/andelf/go-curl/issues/84
broken = true;
2021-10-11 11:28:57 +00:00
};
}