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