From 0e70d9b61b70791889b87d0833c4605e11a58a2a Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 22 Apr 2024 08:02:32 +0200 Subject: [PATCH] chirpstack-mqtt-forwarder: init at 4.3.1 --- .../ch/chirpstack-mqtt-forwarder/package.nix | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/by-name/ch/chirpstack-mqtt-forwarder/package.nix diff --git a/pkgs/by-name/ch/chirpstack-mqtt-forwarder/package.nix b/pkgs/by-name/ch/chirpstack-mqtt-forwarder/package.nix new file mode 100644 index 000000000000..26364fe6461c --- /dev/null +++ b/pkgs/by-name/ch/chirpstack-mqtt-forwarder/package.nix @@ -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"; + }; +}