chirpstack-udp-forwarder: init at 4.1.8
This commit is contained in:
parent
0d528e4772
commit
1c6e710aa3
41
pkgs/by-name/ch/chirpstack-udp-forwarder/package.nix
Normal file
41
pkgs/by-name/ch/chirpstack-udp-forwarder/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user