2020-12-27 14:24:52 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, uhd, boost, soapysdr
|
|
|
|
} :
|
|
|
|
|
2020-12-27 14:24:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "soapyuhd";
|
2020-12-27 14:24:52 +00:00
|
|
|
version = "0.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyUHD";
|
|
|
|
rev = "soapy-uhd-${version}";
|
2020-12-27 14:24:52 +00:00
|
|
|
sha256 = "14rk9ap9ayks2ma6mygca08yfds9bgfmip8cvwl87l06hwhnlwhj";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-27 14:24:52 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
2020-12-27 14:24:52 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|