biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / radio / soapyremote / default.nix
blob4191b8ae95cebb9e55e42670ce18100e0ffe4b84
1 { lib, stdenv, fetchFromGitHub, cmake, soapysdr, avahi }:
3 let
4   version = "0.5.2";
6 in stdenv.mkDerivation {
7   pname = "soapyremote";
8   inherit version;
10   src = fetchFromGitHub {
11     owner = "pothosware";
12     repo = "SoapyRemote";
13     rev = "soapy-remote-${version}";
14     sha256 = "124sy9v08fm51ds1yzrxspychn34y0rl6y48mzariianazvzmfax";
15   };
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" ]);
24   meta = with lib; {
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";
31   };