2018-04-25 19:01:40 +02:00
|
|
|
{ stdenv, fetchFromGitHub, cmake
|
|
|
|
, airspy, soapysdr
|
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2018-12-14 10:17:42 +01:00
|
|
|
version = "0.1.2";
|
2018-04-25 19:01:40 +02:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "soapyairspy";
|
|
|
|
inherit version;
|
2018-04-25 19:01:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyAirspy";
|
|
|
|
rev = "soapy-airspy-${version}";
|
2018-12-14 10:17:42 +01:00
|
|
|
sha256 = "061r77vs6ywxbxfif12y6v5xkz6gcvbz9k060q12vmdh6sisdwk2";
|
2018-04-25 19:01:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ airspy soapysdr ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/pothosware/SoapyAirspy";
|
2018-04-25 19:01:40 +02:00
|
|
|
description = "SoapySDR plugin for Airspy devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|