2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkgconfig
|
2018-12-05 18:01:15 +00:00
|
|
|
, rtl-sdr, soapysdr
|
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2018-12-14 07:49:48 +00:00
|
|
|
version = "0.3.0";
|
2018-12-05 18:01:15 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "soapyrtlsdr";
|
|
|
|
inherit version;
|
2018-12-05 18:01:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyRTLSDR";
|
|
|
|
rev = "soapy-rtlsdr-${version}";
|
2018-12-14 07:49:48 +00:00
|
|
|
sha256 = "15j0s7apbg9cjr6rcbr058kl0r3szwzf00ixcbykxb77fh7c6r9w";
|
2018-12-05 18:01:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ rtl-sdr soapysdr ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pothosware/SoapyRTLSDR";
|
2018-12-05 18:01:15 +00:00
|
|
|
description = "SoapySDR plugin for RTL-SDR devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ragge ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|