commit 99624e91d3f63ce009a49bf1852da3346d33f38d
parent f91e76dd3957a35b65c558860a4ff3677705b91a
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 24 Mar 2024 20:49:59 +0400
Add radiolib
Diffstat:
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -519,6 +519,7 @@ lib.makeScope newScope (
gqrx-scanner = callPackage ./radio/gqrx-scanner { };
libacars = callPackage ./radio/libacars { };
linrad = callPackage ./radio/linrad { };
+ radiolib = callPackage ./radio/radiolib { };
rtlsdr-airband = callPackage ./radio/rtlsdr-airband { };
rtltcp = callPackage ./radio/rtltcp { };
sdr-modem = callPackage ./radio/sdr-modem { };
diff --git a/pkgs/radio/radiolib/default.nix b/pkgs/radio/radiolib/default.nix
@@ -0,0 +1,24 @@
+{ lib, stdenv, fetchFromGitHub, cmake }:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "radiolib";
+ version = "6.4.2";
+
+ src = fetchFromGitHub {
+ owner = "jgromes";
+ repo = "RadioLib";
+ rev = finalAttrs.version;
+ hash = "sha256-9cJZBybenJ160PeDCfWFmsLw4JVJSxNTTWA1Qosy2p0=";
+ fetchSubmodules = true;
+ };
+
+ nativeBuildInputs = [ cmake ];
+
+ meta = with lib; {
+ description = "Universal wireless communication library for embedded devices";
+ inherit (finalAttrs.src.meta) homepage;
+ license = licenses.mit;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+})