1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config
3 , libobjc, IOKit, Security
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
13 rev = "soapy-uhd-${version}";
14 sha256 = "14rk9ap9ayks2ma6mygca08yfds9bgfmip8cvwl87l06hwhnlwhj";
17 nativeBuildInputs = [ cmake pkg-config ];
18 buildInputs = [ uhd boost soapysdr ]
19 ++ lib.optionals stdenv.hostPlatform.isDarwin [ libobjc IOKit Security ];
21 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
24 sed -i "s:DESTINATION .*uhd/modules:DESTINATION $out/lib/uhd/modules:" CMakeLists.txt
28 homepage = "https://github.com/pothosware/SoapyAirspy";
29 description = "SoapySDR plugin for UHD devices";
30 license = licenses.gpl3Only;
31 maintainers = with maintainers; [ markuskowa ];
32 platforms = platforms.unix;