42 lines
999 B
Nix
42 lines
999 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
protobuf,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "chirpstack-mqtt-forwarder";
|
|
version = "4.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chirpstack";
|
|
repo = "chirpstack-mqtt-forwarder";
|
|
rev = "v${version}";
|
|
hash = "sha256-HopcEwj/WOialvttVJ6bTyRRTqrgfIJ/dYKti5T87Os=";
|
|
};
|
|
|
|
cargoHash = "sha256-uR+Y8+/XbIQdbGOoS/tHBo/r7DLiwiRiaXQ7CjaPpoI=";
|
|
|
|
nativeBuildInputs = [ protobuf ];
|
|
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
doInstallCheck = true;
|
|
checkFlags = [
|
|
"--skip=end_to_end" # Depends on internet connectivity
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|