chirpstack-udp-forwarder: init at 4.1.8 (#353918)

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

View File

@ -0,0 +1,41 @@
{
lib,
stdenv,
darwin,
rustPlatform,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
protobuf,
}:
rustPlatform.buildRustPackage rec {
pname = "chirpstack-udp-forwarder";
version = "4.1.8";
src = fetchFromGitHub {
owner = "chirpstack";
repo = "chirpstack-udp-forwarder";
rev = "v${version}";
hash = "sha256-Snj5nKyFsq8WJJNw1d8O/YX/dZ/tCTVBw5R8kXJvsa4=";
};
cargoHash = "sha256-7ugrIVT4SYrqPqF0CrLU+/Ep/p9H7/on3hkZ5JzY9AE=";
nativeBuildInputs = [ protobuf ];
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
description = "UDP packet-forwarder for the ChirpStack Concentratord";
homepage = "https://www.chirpstack.io/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.stv0g ];
mainProgram = "chirpstack-udp-forwarder";
};
}