1{ lib
2, buildGoModule
3, curl
4, fetchFromGitHub
5, pkg-config
6}:
7
8buildGoModule rec {
9 pname = "cameradar";
10 version = "5.0.2";
11
12 src = fetchFromGitHub {
13 owner = "Ullaakut";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "sha256-GOqmz/aiOLGMfs9rQBIEQSgBycPzhu8BohcAc2U+gBw=";
17 };
18
19 vendorSha256 = "sha256-AIi57DWMvAKl0PhuwHO/0cHoDKk5e0bJsqHYBka4NiU=";
20
21 nativeBuildInputs = [
22 pkg-config
23 ];
24
25 buildInputs = [
26 curl
27 ];
28
29 subPackages = [
30 "cmd/cameradar"
31 ];
32 # At least one test is outdated
33 #doCheck = false;
34
35 meta = with lib; {
36 description = "RTSP stream access tool";
37 homepage = "https://github.com/Ullaakut/cameradar";
38 license = with licenses; [ mit ];
39 maintainers = with maintainers; [ fab ];
40 # Upstream issue, doesn't build with latest curl, see
41 # https://github.com/Ullaakut/cameradar/issues/320
42 # https://github.com/andelf/go-curl/issues/84
43 broken = true;
44 };
45}