3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/cameradar/default.nix

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

42 lines
757 B
Nix
Raw Normal View History

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 ];
};
}