try to package neolink

This commit is contained in:
fleaz 2023-12-01 14:58:00 +01:00
parent c38e197482
commit 76285643d8
2 changed files with 44 additions and 1 deletions

View file

@ -15,4 +15,6 @@ self: super: {
nginxModules = super.recurseIntoAttrs (super.callPackage ./nginx/modules.nix { });
libedgetpu = self.callPackage ./libedgetpu {};
neolink = self.callPackage ./neolink.nix {};
}

41
neolink.nix Normal file
View file

@ -0,0 +1,41 @@
{ lib
,fetchFromGitHub
, rustPlatform
, pkg-config
, gst_all_1
}:
rustPlatform.buildRustPackage rec {
version = "0.6.2";
pname = "neolink";
src = fetchFromGitHub {
owner = "QuantumEntangledAndy";
repo = "neolink";
rev = "v${version}";
hash = "sha256-O+CbxK0phdRFcPH+ELjxd5Ad5eZWz/FZrmnGvkFv1b8=";
};
nativeBuildInputs = [ pkg-config
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-good
gst_all_1.gst-plugins-bad
gst_all_1.gst-rtsp-server
];
propagatedBuildInputs = [
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=";
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 ];
};
}