nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 2897b708f02b533e9b51468c95cd7e6be2136c3a
parent afbe0176394393df0e0dfa0733e1599570a9ed47
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sun, 21 Jan 2024 03:30:34 +0400

Add dumpvdl2

Diffstat:
Mpkgs/default.nix | 3+++
Apkgs/radio/dumpvdl2/default.nix | 26++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -495,6 +495,9 @@ lib.makeScope newScope ( acarsdec = callPackage ./radio/acarsdec { }; aprsc = callPackage ./radio/aprsc { }; + dumpvdl2 = callPackage ./radio/dumpvdl2 { + inherit (darwin.apple_sdk.frameworks) AppKit Foundation; + }; fmreceiver = libsForQt5.callPackage ./radio/fmreceiver { }; goestools = callPackage ./radio/goestools { }; gqrx-scanner = callPackage ./radio/gqrx-scanner { }; diff --git a/pkgs/radio/dumpvdl2/default.nix b/pkgs/radio/dumpvdl2/default.nix @@ -0,0 +1,26 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, glib, libacars, protobufc, rtl-sdr, soapysdr, sqlite, zeromq, AppKit, Foundation }: + +stdenv.mkDerivation (finalAttrs: { + pname = "dumpvdl2"; + version = "2.3.0"; + + src = fetchFromGitHub { + owner = "szpajder"; + repo = "dumpvdl2"; + rev = "v${finalAttrs.version}"; + hash = "sha256-lmjVLHFLa819sgZ0NfSyKywEwS6pQxzdOj4y8RwRu/8="; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + + buildInputs = [ glib libacars protobufc rtl-sdr soapysdr sqlite zeromq ] + ++ lib.optionals stdenv.isDarwin [ AppKit Foundation ]; + + meta = with lib; { + description = "VDL Mode 2 message decoder and protocol analyzer"; + inherit (finalAttrs.src.meta) homepage; + license = licenses.gpl3Plus; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +})