mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
39 lines
890 B
Nix
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";
|
|
};
|
|
}
|