2021-10-11 12:28:57 +01: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 12:28:57 +01: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 12:28:57 +01:00
|
|
|
};
|
|
|
|
|
2022-03-21 02:02:38 +00:00
|
|
|
vendorSha256 = "sha256-AIi57DWMvAKl0PhuwHO/0cHoDKk5e0bJsqHYBka4NiU=";
|
2021-10-11 12:28:57 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|