2018-04-25 17:01:40 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
|
|
|
, uhd, boost, soapysdr
|
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2019-06-27 10:50:56 +00:00
|
|
|
version = "0.3.6";
|
2018-04-25 17:01:40 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "soapyuhd";
|
|
|
|
inherit version;
|
2018-04-25 17:01:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyUHD";
|
|
|
|
rev = "soapy-uhd-${version}";
|
2019-06-27 10:50:56 +00:00
|
|
|
sha256 = "11kp5iv21k8lqwjjydzqmcxdgpm6yicw6d3jhzvcvwcavd41crs7";
|
2018-04-25 17:01:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ uhd boost soapysdr ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "s:DESTINATION .*uhd/modules:DESTINATION $out/lib/uhd/modules:" CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/pothosware/SoapyAirspy;
|
|
|
|
description = "SoapySDR plugin for UHD devices";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|