2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2020-12-25 13:55:36 +00:00
|
|
|
, hamlib, rtaudio, alsaLib, libpulseaudio, libjack2, libusb1, soapysdr
|
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "soapyaudio";
|
|
|
|
version = "0.1.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyAudio";
|
|
|
|
rev = "soapy-audio-${version}";
|
|
|
|
sha256 = "0minlsc1lvmqm20vn5hb4im7pz8qwklfy7sbr2xr73xkrbqdahc0";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ hamlib rtaudio alsaLib libpulseaudio libjack2 libusb1 soapysdr ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/"
|
|
|
|
"-DUSE_HAMLIB=ON"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-25 13:55:36 +00:00
|
|
|
homepage = "https://github.com/pothosware/SoapyAudio";
|
|
|
|
description = "SoapySDR plugin for amateur radio and audio devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ numinit ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|