15 stdenv.mkDerivation rec {
19 src = fetchFromGitHub {
22 rev = "soapy-uhd-${version}";
23 sha256 = "14rk9ap9ayks2ma6mygca08yfds9bgfmip8cvwl87l06hwhnlwhj";
36 ++ lib.optionals stdenv.hostPlatform.isDarwin [
42 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
45 sed -i "s:DESTINATION .*uhd/modules:DESTINATION $out/lib/uhd/modules:" CMakeLists.txt
49 homepage = "https://github.com/pothosware/SoapyAirspy";
50 description = "SoapySDR plugin for UHD devices";
51 license = licenses.gpl3Only;
52 maintainers = with maintainers; [ markuskowa ];
53 platforms = platforms.unix;