hiksink: init at 1.2.0

This commit is contained in:
Fabian Affolter 2021-10-17 18:05:17 +02:00
parent cb10e4ddf6
commit eed2b2960b
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, pkg-config
, Security
, openssl
}:
rustPlatform.buildRustPackage rec {
pname = "hiksink";
version = "1.2.0";
src = fetchFromGitHub {
owner = "CornerBit";
repo = pname;
rev = version;
sha256 = "1m8hd7qbasxyq09ycnqma2y4b9s2k54h9i2rkzsa9sksc868wxh8";
};
cargoSha256 = "15r6rwhyy0s5i0v9nzx3hfl5cvlb0hxnllcwfnw0bbn9km25l9r3";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ lib.optional stdenv.isDarwin [
Security
];
meta = with lib; {
description = "Tool to convert Hikvision camera events to MQTT";
homepage = "https://github.com/CornerBit/HikSink";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -3034,6 +3034,10 @@ with pkgs;
hidrd = callPackage ../tools/misc/hidrd { };
hiksink = callPackage ../tools/misc/hiksink {
inherit (darwin.apple_sdk.frameworks) Security;
};
hocr-tools = with python3Packages; toPythonApplication hocr-tools;
home-manager = callPackage ../tools/package-management/home-manager {};