nur-packages

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

commit 8d91bc4254d96066ea0abeb446cc50dfda078ef1
parent 3725f7edb7371bb37d322c03cf8dcfa27558596b
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon, 22 Nov 2021 20:34:02 +0300

Add rtlsdr-airband

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/radio/rtlsdr-airband/default.nix | 30++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -331,6 +331,7 @@ lib.makeScope newScope ( fmreceiver = libsForQt5.callPackage ./radio/fmreceiver { }; gqrx-scanner = callPackage ./radio/gqrx-scanner { }; linrad = callPackage ./radio/linrad { }; + rtlsdr-airband = callPackage ./radio/rtlsdr-airband { }; sigdigger = libsForQt5.callPackage ./radio/sigdigger { inherit sigutils suscan suwidgets; }; diff --git a/pkgs/radio/rtlsdr-airband/default.nix b/pkgs/radio/rtlsdr-airband/default.nix @@ -0,0 +1,30 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config +, fftwFloat, lame, libconfig, libshout, pulseaudio, rtl-sdr, soapysdr +}: + +stdenv.mkDerivation rec { + pname = "rtlsdr-airband"; + version = "4.0.1"; + + src = fetchFromGitHub { + owner = "szpajder"; + repo = pname; + rev = "v${version}"; + hash = "sha256-KWuhffRUaCRvJgJWOBbSkqKDXtBsZ8Gln0sIp7bZqw0="; + }; + + nativeBuildInputs = [ cmake pkg-config ]; + + buildInputs = [ fftwFloat lame libconfig libshout pulseaudio rtl-sdr soapysdr ]; + + cmakeFlags = [ "-DNFM=ON" ]; + + meta = with lib; { + description = "Multichannel AM/NFM demodulator"; + inherit (src.meta) homepage; + license = licenses.gpl3Plus; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.linux; + skip.ci = stdenv.isDarwin; + }; +}