2018-12-16 00:52:13 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, soapysdr, avahi }:
|
2018-04-25 18:01:40 +01:00
|
|
|
|
|
|
|
let
|
2019-02-11 22:52:05 +00:00
|
|
|
version = "0.5.1";
|
2018-04-25 18:01:40 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "soapyremote";
|
|
|
|
inherit version;
|
2018-04-25 18:01:40 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyRemote";
|
2018-12-16 00:52:13 +00:00
|
|
|
rev = "soapy-remote-${version}";
|
2019-02-11 22:52:05 +00:00
|
|
|
sha256 = "1qlpjg8mh564q26mni8g6bb8w9nj7hgcq86278fszxpwpnk3jsvk";
|
2018-04-25 18:01:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-12-16 00:52:13 +00:00
|
|
|
buildInputs = [ soapysdr avahi ];
|
2018-04-25 18:01:40 +01:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/pothosware/SoapyRemote;
|
|
|
|
description = "SoapySDR plugin for remote access to SDRs";
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|