nixpkgs/pkgs/by-name/ch/chirpstack-concentratord/package.nix
2024-11-23 17:43:36 +01:00

46 lines
974 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
protobuf,
libloragw-2g4,
libloragw-sx1301,
libloragw-sx1302,
}:
rustPlatform.buildRustPackage rec {
pname = "chirpstack-concentratord";
version = "4.4.2";
src = fetchFromGitHub {
owner = "chirpstack";
repo = "chirpstack-concentratord";
rev = "v${version}";
hash = "sha256-UbUtNJuz8zfhHzyOiT/mRNtNRmdoNnuszrVSbLoVGK8=";
};
cargoHash = "sha256-JXIyrbBRGJR9mjvawU46mBfGYxZPpYl9aB9k3WBA/co=";
buildInputs = [
libloragw-2g4
libloragw-sx1301
libloragw-sx1302
];
nativeBuildInputs = [
protobuf
rustPlatform.bindgenHook
];
updateScript = nix-update-script { };
meta = {
description = "Concentrator HAL daemon for LoRa gateways";
homepage = "https://www.chirpstack.io/";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.stv0g ];
platforms = lib.platforms.linux;
mainProgram = "chirpstack-concentratord";
};
}