1 { lib, stdenv, fetchFromGitHub, cmake, soapysdr, avahi }:
6 in stdenv.mkDerivation {
10 src = fetchFromGitHub {
13 rev = "soapy-remote-${version}";
14 sha256 = "124sy9v08fm51ds1yzrxspychn34y0rl6y48mzariianazvzmfax";
17 nativeBuildInputs = [ cmake ];
18 buildInputs = [ soapysdr avahi ];
20 cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
22 env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.isDarwin [ "-include sys/select.h" ]);
25 homepage = "https://github.com/pothosware/SoapyRemote";
26 description = "SoapySDR plugin for remote access to SDRs";
27 license = licenses.boost;
28 maintainers = with maintainers; [ markuskowa ];
29 platforms = platforms.unix;
30 mainProgram = "SoapySDRServer";