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

29 lines
744 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, soapysdr, avahi }:
2018-04-25 19:01:40 +02:00
let
2019-02-11 23:52:05 +01:00
version = "0.5.1";
2018-04-25 19:01:40 +02:00
in stdenv.mkDerivation {
name = "soapyremote-${version}";
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyRemote";
rev = "soapy-remote-${version}";
2019-02-11 23:52:05 +01:00
sha256 = "1qlpjg8mh564q26mni8g6bb8w9nj7hgcq86278fszxpwpnk3jsvk";
2018-04-25 19:01:40 +02:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ soapysdr avahi ];
2018-04-25 19:01:40 +02:00
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
meta = with stdenv.lib; {
homepage = https://github.com/pothosware/SoapyRemote;
description = "SoapySDR plugin for remote access to SDRs";
license = licenses.boost;
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.linux;
};
}