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

33 lines
864 B
Nix
Raw Normal View History

2020-12-26 17:58:46 -08:00
{ stdenv, fetchFromGitHub, cmake, pkg-config
2018-04-25 10:01:40 -07:00
, uhd, boost, soapysdr
} :
2020-12-26 17:58:46 -08:00
stdenv.mkDerivation rec {
2019-08-13 14:52:01 -07:00
pname = "soapyuhd";
2020-12-26 17:58:46 -08:00
version = "0.4.1";
2018-04-25 10:01:40 -07:00
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyUHD";
rev = "soapy-uhd-${version}";
2020-12-26 17:58:46 -08:00
sha256 = "14rk9ap9ayks2ma6mygca08yfds9bgfmip8cvwl87l06hwhnlwhj";
2018-04-25 10:01:40 -07:00
};
2020-12-26 17:58:46 -08:00
nativeBuildInputs = [ cmake pkg-config ];
2018-04-25 10:01:40 -07:00
buildInputs = [ uhd boost soapysdr ];
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
postPatch = ''
sed -i "s:DESTINATION .*uhd/modules:DESTINATION $out/lib/uhd/modules:" CMakeLists.txt
'';
meta = with stdenv.lib; {
homepage = "https://github.com/pothosware/SoapyAirspy";
2018-04-25 10:01:40 -07:00
description = "SoapySDR plugin for UHD devices";
2020-12-27 03:17:51 -08:00
license = licenses.gpl3Only;
2018-04-25 10:01:40 -07:00
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.linux;
};
}