chirpstack-mqtt-forwarder: init at 4.3.1

This commit is contained in:
Steffen Vogel 2024-04-22 08:02:32 +02:00
parent 0d528e4772
commit 0e70d9b61b

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";
};
}