nixpkgs/pkgs/applications/radio/soapyremote/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
886 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, soapysdr, avahi }:
2018-04-25 17:01:40 +00:00
let
2020-07-30 11:49:20 +00:00
version = "0.5.2";
2018-04-25 17:01:40 +00:00
in stdenv.mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "soapyremote";
inherit version;
2018-04-25 17:01:40 +00:00
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyRemote";
rev = "soapy-remote-${version}";
2020-07-30 11:49:20 +00:00
sha256 = "124sy9v08fm51ds1yzrxspychn34y0rl6y48mzariianazvzmfax";
2018-04-25 17:01:40 +00:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ soapysdr avahi ];
2018-04-25 17:01:40 +00:00
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [ "-include sys/select.h" ]);
meta = with lib; {
homepage = "https://github.com/pothosware/SoapyRemote";
2018-04-25 17:01:40 +00:00
description = "SoapySDR plugin for remote access to SDRs";
license = licenses.boost;
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.unix;
2024-02-11 02:19:15 +00:00
mainProgram = "SoapySDRServer";
2018-04-25 17:01:40 +00:00
};
}