mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
46 lines
1004 B
Nix
46 lines
1004 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
protobuf,
|
|
libloragw-2g4,
|
|
libloragw-sx1301,
|
|
libloragw-sx1302,
|
|
}:
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "chirpstack-concentratord";
|
|
version = "4.7.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "chirpstack";
|
|
repo = "chirpstack-concentratord";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-icvbZjqsDf/RLiDUyx0lQKRVHFh6FNxkLVkv9kckDBc=";
|
|
};
|
|
|
|
cargoHash = "sha256-iJhNaXv5a8+9TZJGLdKZdq1VFE09w0L/05V1y6kabN0=";
|
|
|
|
buildInputs = [
|
|
libloragw-2g4
|
|
libloragw-sx1301
|
|
libloragw-sx1302
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
protobuf
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
passthru.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";
|
|
};
|
|
})
|