mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-05 20:43:28 +00:00
libloragw-sx1301: init at 5.0.1r2
This commit is contained in:
parent
18979df9f0
commit
d80e223808
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;
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in New Issue
Block a user