2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
, airspy, soapysdr
|
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "0.1.2";
|
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
pname = "soapyairspy";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyAirspy";
|
|
|
|
rev = "soapy-airspy-${version}";
|
|
|
|
sha256 = "061r77vs6ywxbxfif12y6v5xkz6gcvbz9k060q12vmdh6sisdwk2";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ airspy soapysdr ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pothosware/SoapyAirspy";
|
|
|
|
description = "SoapySDR plugin for Airspy devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|