chirpstack-mqtt-forwarder: init at 4.3.1 (#353917)

This commit is contained in:
Aleksana 2024-11-24 20:34:55 +08:00 committed by GitHub
commit bdd3c0a1f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,43 @@
{
lib,
stdenv,
darwin,
rustPlatform,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
protobuf,
}:
rustPlatform.buildRustPackage rec {
pname = "chirpstack-mqtt-forwarder";
version = "4.3.1";
src = fetchFromGitHub {
owner = "chirpstack";
repo = "chirpstack-mqtt-forwarder";
rev = "v${version}";
hash = "sha256-jbu8O1Wag6KpN49VyXsYO8os95ctZjzuxKXoDMLyiKU=";
};
cargoHash = "sha256-1tAZjsjoVKUkrF0WAqxs9d+1w8/AqFGDfpFGAHvf+D0=";
nativeBuildInputs = [ protobuf ];
nativeInstallCheckInputs = [
versionCheckHook
];
# Skip tests depending on internet connectivity
checkFlags = [ "--skip=end_to_end" ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Forwarder which can be installed on the gateway to forward LoRa data over MQTT";
homepage = "https://www.chirpstack.io/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.stv0g ];
mainProgram = "chirpstack-mqtt-forwarder";
};
}