2018-12-16 01:52:13 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, soapysdr, avahi }:
|
2018-04-25 19:01:40 +02:00
|
|
|
|
|
|
|
let
|
2018-12-16 01:52:13 +01:00
|
|
|
version = "0.5.0";
|
2018-04-25 19:01:40 +02:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "soapyremote-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyRemote";
|
2018-12-16 01:52:13 +01:00
|
|
|
rev = "soapy-remote-${version}";
|
|
|
|
sha256 = "1lyjhf934zap61ky7rbk46bp8s8sjk8sgdyszhryfyf571jv9b2i";
|
2018-04-25 19:01:40 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-12-16 01:52:13 +01:00
|
|
|
buildInputs = [ soapysdr avahi ];
|
2018-04-25 19:01:40 +02: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;
|
|
|
|
};
|
|
|
|
}
|