chirpstack-concentratord: init at 4.4.2 (#353921)
This commit is contained in:
commit
15faba4dfb
45
pkgs/by-name/ch/chirpstack-concentratord/package.nix
Normal file
45
pkgs/by-name/ch/chirpstack-concentratord/package.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
49
pkgs/by-name/li/libloragw-2g4/package.nix
Normal file
49
pkgs/by-name/li/libloragw-2g4/package.nix
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libloragw-2g4";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Lora-net";
|
||||
repo = "gateway_2g4_hal";
|
||||
rev = "refs/tags/V${finalAttrs.version}";
|
||||
hash = "sha256-EvsYCkZ55nEdZXhxp7AjCw954+uUIoi2Fc3xhaIjZys=";
|
||||
};
|
||||
|
||||
passthru.updateScript = gitUpdater { rev-prefix = "V"; };
|
||||
|
||||
makeFlags = [
|
||||
"-e"
|
||||
"-C"
|
||||
"libloragw"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
make -C libtools
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{lib,include/libloragw-2g4}
|
||||
cp libloragw/libloragw.a $out/lib/libloragw-2g4.a
|
||||
cp libloragw/inc/* $out/include/libloragw-2g4
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "LoRa 2.4Ghz Gateway - Linux host Hardware Abstraction Layer, and tools (Packet Forwarder...)";
|
||||
license = [
|
||||
lib.licenses.bsd3
|
||||
lib.licenses.mit
|
||||
];
|
||||
maintainers = [ lib.maintainers.stv0g ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
45
pkgs/by-name/li/libloragw-sx1301/package.nix
Normal file
45
pkgs/by-name/li/libloragw-sx1301/package.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libloragw-sx1301";
|
||||
version = "5.0.1r4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "brocaar";
|
||||
repo = "lora_gateway";
|
||||
rev = "refs/tags/v${finalAttrs.version}";
|
||||
hash = "sha256-YxnFWJhH5iUR+6zA0Pf7a+VxFwYkw84CeoQmd01efqU=";
|
||||
};
|
||||
|
||||
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
||||
|
||||
makeFlags = [
|
||||
"-e"
|
||||
"-C"
|
||||
"libloragw"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{lib,include/libloragw-sx1301}
|
||||
cp libloragw/libloragw.a $out/lib/libloragw-sx1301.a
|
||||
cp libloragw/inc/* $out/include/libloragw-sx1301
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Driver/HAL to build a gateway using a concentrator board based on Semtech SX1301 multi-channel modem and SX1257/SX1255 RF transceivers";
|
||||
license = [
|
||||
lib.licenses.bsd3
|
||||
lib.licenses.mit
|
||||
];
|
||||
maintainers = [ lib.maintainers.stv0g ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
51
pkgs/by-name/li/libloragw-sx1302/package.nix
Normal file
51
pkgs/by-name/li/libloragw-sx1302/package.nix
Normal file
@ -0,0 +1,51 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
gitUpdater,
|
||||
}:
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "libloragw-sx1302";
|
||||
version = "2.1.0r9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "brocaar";
|
||||
repo = "sx1302_hal";
|
||||
rev = "refs/tags/V${finalAttrs.version}";
|
||||
hash = "sha256-NYu54UpMn2OZfGihBH9Kbp2kUcEy0epH1Tt5I3r6jTs=";
|
||||
};
|
||||
|
||||
passthru.updateScript = gitUpdater { rev-prefix = "V"; };
|
||||
|
||||
makeFlags = [
|
||||
"-e"
|
||||
"-C"
|
||||
"libloragw"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
make -C libtools
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{lib,include/libloragw-sx1302}
|
||||
cp libloragw/libloragw.a $out/lib/libloragw-sx1302.a
|
||||
cp libloragw/inc/* $out/include/libloragw-sx1302
|
||||
cp libtools/*.a $out/lib/
|
||||
cp libtools/inc/* $out/include/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "SX1302 Hardware Abstraction Layer and Tools (packet forwarder...)";
|
||||
license = [
|
||||
lib.licenses.bsd3
|
||||
lib.licenses.mit
|
||||
];
|
||||
maintainers = [ lib.maintainers.stv0g ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user