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

32 lines
769 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2018-12-05 19:01:15 +01:00
, rtl-sdr, soapysdr
} :
let
version = "0.3.0";
2018-12-05 19:01:15 +01:00
in stdenv.mkDerivation {
2019-08-13 23:52:01 +02:00
pname = "soapyrtlsdr";
inherit version;
2018-12-05 19:01:15 +01:00
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyRTLSDR";
rev = "soapy-rtlsdr-${version}";
sha256 = "15j0s7apbg9cjr6rcbr058kl0r3szwzf00ixcbykxb77fh7c6r9w";
2018-12-05 19:01:15 +01:00
};
nativeBuildInputs = [ cmake pkg-config ];
2018-12-05 19:01:15 +01:00
buildInputs = [ rtl-sdr soapysdr ];
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
meta = with lib; {
homepage = "https://github.com/pothosware/SoapyRTLSDR";
2018-12-05 19:01:15 +01:00
description = "SoapySDR plugin for RTL-SDR devices";
license = licenses.mit;
maintainers = with maintainers; [ ragge ];
platforms = platforms.linux;
};
}