From 88ce2e6a5f0e133e7e0c8342c955fc9343b1e00f Mon Sep 17 00:00:00 2001 From: fleaz Date: Wed, 27 Dec 2023 22:40:04 +0100 Subject: [PATCH] neolink WIP --- neolink.nix | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/neolink.nix b/neolink.nix index 4097e39..321fab8 100644 --- a/neolink.nix +++ b/neolink.nix @@ -3,17 +3,19 @@ , rustPlatform , pkg-config , gst_all_1 +, openssl +, protobuf }: rustPlatform.buildRustPackage rec { - version = "0.6.2"; + version = "unstable-2013-10-28"; pname = "neolink"; src = fetchFromGitHub { owner = "QuantumEntangledAndy"; repo = "neolink"; - rev = "v${version}"; - hash = "sha256-O+CbxK0phdRFcPH+ELjxd5Ad5eZWz/FZrmnGvkFv1b8="; + rev = "4a94a2ddb29bed207307eb2de744748190e8577f"; + hash = "sha256-+yIjNcrd7TZx4eTc4u1SCDDmwXwGYUI90NPTtgkbXec="; }; nativeBuildInputs = [ @@ -21,13 +23,19 @@ rustPlatform.buildRustPackage rec { ]; buildInputs = [ + openssl + protobuf gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad gst_all_1.gst-rtsp-server ]; - cargoSha256 = "sha256-Y82G/gk7VE2q0DZdZoEkDT+Iye/nqixauKir3dW7tCg="; + # needed for internal protobuf c wrapper library + PROTOC = "${protobuf}/bin/protoc"; + PROTOC_INCLUDE = "${protobuf}/include"; + + cargoHash = "sha256-Cea110RJc3q6J1lclFOvR1ETR0yvNeD5/S4PuxRLmvk="; meta = with lib; { homepage = "https://github.com/QuantumEntangledAndy/neolink";