2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, soapysdr, avahi }:
|
2018-04-25 19:01:40 +02:00
|
|
|
|
|
|
|
let
|
2020-07-30 13:49:20 +02:00
|
|
|
version = "0.5.2";
|
2018-04-25 19:01:40 +02:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "soapyremote";
|
|
|
|
inherit version;
|
2018-04-25 19:01:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyRemote";
|
2018-12-16 01:52:13 +01:00
|
|
|
rev = "soapy-remote-${version}";
|
2020-07-30 13:49:20 +02:00
|
|
|
sha256 = "124sy9v08fm51ds1yzrxspychn34y0rl6y48mzariianazvzmfax";
|
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/" ];
|
|
|
|
|
2022-10-06 19:14:13 +02:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionals stdenv.isDarwin [ "-include sys/select.h" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/pothosware/SoapyRemote";
|
2018-04-25 19:01:40 +02:00
|
|
|
description = "SoapySDR plugin for remote access to SDRs";
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
2022-10-06 19:14:13 +02:00
|
|
|
platforms = platforms.unix;
|
2018-04-25 19:01:40 +02:00
|
|
|
};
|
|
|
|
}
|