overlay/neolink/default.nix

48 lines
1 KiB
Nix
Raw Normal View History

2023-12-01 13:58:00 +00:00
{ lib
,fetchFromGitHub
, rustPlatform
, pkg-config
, gst_all_1
2023-12-27 21:40:04 +00:00
, openssl
, protobuf
2023-12-01 13:58:00 +00:00
}:
rustPlatform.buildRustPackage rec {
2023-12-27 21:40:04 +00:00
version = "unstable-2013-10-28";
2023-12-01 13:58:00 +00:00
pname = "neolink";
src = fetchFromGitHub {
owner = "QuantumEntangledAndy";
repo = "neolink";
2023-12-27 21:40:04 +00:00
rev = "4a94a2ddb29bed207307eb2de744748190e8577f";
hash = "sha256-+yIjNcrd7TZx4eTc4u1SCDDmwXwGYUI90NPTtgkbXec=";
2023-12-01 13:58:00 +00:00
};
2023-12-08 23:50:20 +00:00
nativeBuildInputs = [
pkg-config
2023-12-01 13:58:00 +00:00
];
2023-12-08 23:50:20 +00:00
buildInputs = [
2023-12-27 21:40:04 +00:00
openssl
protobuf
2023-12-01 13:58:00 +00:00
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-rtsp-server
];
2023-12-27 21:40:04 +00:00
# needed for internal protobuf c wrapper library
PROTOC = "${protobuf}/bin/protoc";
PROTOC_INCLUDE = "${protobuf}/include";
cargoHash = "sha256-Cea110RJc3q6J1lclFOvR1ETR0yvNeD5/S4PuxRLmvk=";
2023-12-01 13:58:00 +00:00
meta = with lib; {
homepage = "https://github.com/QuantumEntangledAndy/neolink";
description = " An RTSP bridge to Reolink IP cameras ";
license = lib.licenses.agpl3;
maintainers = with lib.maintainers; [ fleaz ];
};
}