Files
nixpkgs/pkgs/by-name/ch/chirpstack-udp-forwarder/package.nix
2026-08-26 18:56:23 +00:00

39 lines
890 B
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
protobuf,
}:
rustPlatform.buildRustPackage rec {
pname = "chirpstack-udp-forwarder";
version = "4.3.1";
src = fetchFromGitHub {
owner = "chirpstack";
repo = "chirpstack-udp-forwarder";
rev = "v${version}";
hash = "sha256-XPSAn+w4G8YErjKIG0a+F+ep+QBIwzL2BEffyccLLXw=";
};
cargoHash = "sha256-ZAmBrJr+b6wXz/UVgd2ajTwTEBaA6BoewdP+lVdY9aE=";
nativeBuildInputs = [ protobuf ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
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";
};
}