hiksink: init at 1.2.0
This commit is contained in:
parent
cb10e4ddf6
commit
eed2b2960b
39
pkgs/tools/misc/hiksink/default.nix
Normal file
39
pkgs/tools/misc/hiksink/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -3034,6 +3034,10 @@ with pkgs;
|
||||||
|
|
||||||
hidrd = callPackage ../tools/misc/hidrd { };
|
hidrd = callPackage ../tools/misc/hidrd { };
|
||||||
|
|
||||||
|
hiksink = callPackage ../tools/misc/hiksink {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
hocr-tools = with python3Packages; toPythonApplication hocr-tools;
|
hocr-tools = with python3Packages; toPythonApplication hocr-tools;
|
||||||
|
|
||||||
home-manager = callPackage ../tools/package-management/home-manager {};
|
home-manager = callPackage ../tools/package-management/home-manager {};
|
||||||
|
|
Loading…
Reference in a new issue