1 { lib, stdenv, fetchFromGitHub, cmake
3 , libobjc, IOKit, Security
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
13 rev = "soapy-airspy-${version}";
14 sha256 = "0g23yybnmq0pg2m8m7dbhif8lw0hdsmnnjym93fdyxfk5iln7fsc";
17 nativeBuildInputs = [ cmake ];
18 buildInputs = [ airspy soapysdr ]
19 ++ lib.optionals stdenv.hostPlatform.isDarwin [ libobjc IOKit Security ];
21 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
24 homepage = "https://github.com/pothosware/SoapyAirspy";
25 description = "SoapySDR plugin for Airspy devices";
26 license = licenses.mit;
27 maintainers = with maintainers; [ markuskowa ];
28 platforms = platforms.unix;