commit 53308ee2aba082add8871044927a66ce922d11f0
parent 7ffeb7803c25b63df1d1b88a558df9ab4d462ead
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Tue, 30 May 2023 22:23:47 +0400
Add libacars
Diffstat:
2 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -452,6 +452,7 @@ lib.makeScope newScope (
aprsc = callPackage ./radio/aprsc { };
fmreceiver = libsForQt5.callPackage ./radio/fmreceiver { };
gqrx-scanner = callPackage ./radio/gqrx-scanner { };
+ libacars = callPackage ./radio/libacars { };
linrad = callPackage ./radio/linrad { };
rtlsdr-airband = callPackage ./radio/rtlsdr-airband { };
sdr-server = callPackage ./radio/sdr-server { };
diff --git a/pkgs/radio/libacars/default.nix b/pkgs/radio/libacars/default.nix
@@ -0,0 +1,27 @@
+{ lib, stdenv, fetchFromGitHub, cmake, libxml2, zlib }:
+
+stdenv.mkDerivation (finalAttrs: {
+ pname = "libacars";
+ version = "2.1.4";
+
+ src = fetchFromGitHub {
+ owner = "szpajder";
+ repo = "libacars";
+ rev = "v${finalAttrs.version}";
+ hash = "sha256-uOIAGCcCUhc2RsCWOhTVGPQBNpLQMqs0vpXJ5/SS9sE=";
+ };
+
+ nativeBuildInputs = [ cmake ];
+
+ buildInputs = [ libxml2 zlib ];
+
+ cmakeFlags = [ "-DCMAKE_INSTALL_LIBDIR=lib" ];
+
+ meta = with lib; {
+ description = "A library for decoding various ACARS message payloads";
+ inherit (finalAttrs.src.meta) homepage;
+ license = licenses.mit;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+})