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

33 lines
862 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2018-04-25 18:01:40 +01:00
, uhd, boost, soapysdr
} :
2020-12-27 01:58:46 +00:00
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "soapyuhd";
2020-12-27 01:58:46 +00:00
version = "0.4.1";
2018-04-25 18:01:40 +01:00
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyUHD";
rev = "soapy-uhd-${version}";
2020-12-27 01:58:46 +00:00
sha256 = "14rk9ap9ayks2ma6mygca08yfds9bgfmip8cvwl87l06hwhnlwhj";
2018-04-25 18:01:40 +01:00
};
2020-12-27 01:58:46 +00:00
nativeBuildInputs = [ cmake pkg-config ];
2018-04-25 18:01:40 +01: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 lib; {
homepage = "https://github.com/pothosware/SoapyAirspy";
2018-04-25 18:01:40 +01:00
description = "SoapySDR plugin for UHD devices";
2020-12-27 11:17:51 +00:00
license = licenses.gpl3Only;
2018-04-25 18:01:40 +01:00
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.linux;
};
}