commit 4e2d3575ed62fdb043c44e3fba264f56ed60fc13
parent 53308ee2aba082add8871044927a66ce922d11f0
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Tue, 30 May 2023 22:38:23 +0400
Add acarsdec
Diffstat:
2 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -449,6 +449,7 @@ lib.makeScope newScope (
### RADIO
+ acarsdec = callPackage ./radio/acarsdec { };
aprsc = callPackage ./radio/aprsc { };
fmreceiver = libsForQt5.callPackage ./radio/fmreceiver { };
gqrx-scanner = callPackage ./radio/gqrx-scanner { };
diff --git a/pkgs/radio/acarsdec/default.nix b/pkgs/radio/acarsdec/default.nix
@@ -0,0 +1,28 @@
+{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, libacars, libsndfile, paho-mqtt-c, rtl-sdr }:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "acarsdec";
+ version = "3.7";
+
+ src = fetchFromGitHub {
+ owner = "TLeconte";
+ repo = "acarsdec";
+ rev = "acarsdec-${finalAttrs.version}";
+ hash = "sha256-MBy9Xq5ufusqSKGe40JxgnFeo4wnabThbDpGEE6u1so=";
+ };
+
+ nativeBuildInputs = [ cmake pkg-config ];
+
+ buildInputs = [ libacars libsndfile paho-mqtt-c rtl-sdr ];
+
+ cmakeFlags = [ "-Drtl=ON" "-Dairspy=OFF" "-Dsdrplay=OFF" ];
+
+ meta = with lib; {
+ description = "ACARS SDR decoder";
+ inherit (finalAttrs.src.meta) homepage;
+ license = licenses.gpl2;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.linux;
+ skip.ci = stdenv.isDarwin;
+ };
+})