commit
92b9a30b03
2 changed files with 43 additions and 0 deletions
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 ];
|
||||
};
|
||||
}
|
|
@ -3042,6 +3042,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 {};
|
||||
|
|
Loading…
Reference in a new issue