2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake
|
2018-04-25 18:01:40 +01:00
|
|
|
, airspy, soapysdr
|
|
|
|
} :
|
|
|
|
|
2021-06-30 13:58:07 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "soapyairspy";
|
2021-06-30 13:58:07 +01:00
|
|
|
version = "0.2.0";
|
2018-04-25 18:01:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyAirspy";
|
|
|
|
rev = "soapy-airspy-${version}";
|
2021-06-30 13:58:07 +01:00
|
|
|
sha256 = "0g23yybnmq0pg2m8m7dbhif8lw0hdsmnnjym93fdyxfk5iln7fsc";
|
2018-04-25 18:01:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ airspy soapysdr ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pothosware/SoapyAirspy";
|
2018-04-25 18:01:40 +01:00
|
|
|
description = "SoapySDR plugin for Airspy devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|