2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, soapysdr, avahi }:
|
2018-04-25 10:01:40 -07:00
|
|
|
|
|
|
|
let
|
2020-07-30 04:49:20 -07:00
|
|
|
version = "0.5.2";
|
2018-04-25 10:01:40 -07:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "soapyremote";
|
|
|
|
inherit version;
|
2018-04-25 10:01:40 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyRemote";
|
2018-12-15 16:52:13 -08:00
|
|
|
rev = "soapy-remote-${version}";
|
2020-07-30 04:49:20 -07:00
|
|
|
sha256 = "124sy9v08fm51ds1yzrxspychn34y0rl6y48mzariianazvzmfax";
|
2018-04-25 10:01:40 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-12-15 16:52:13 -08:00
|
|
|
buildInputs = [ soapysdr avahi ];
|
2018-04-25 10:01:40 -07:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/pothosware/SoapyRemote";
|
2018-04-25 10:01:40 -07:00
|
|
|
description = "SoapySDR plugin for remote access to SDRs";
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|