2018-04-25 18:01:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig
|
|
|
|
, hackrf, soapysdr
|
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2018-05-17 21:14:13 +01:00
|
|
|
version = "0.3.3";
|
2018-04-25 18:01:40 +01:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "soapyhackrf-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyHackRF";
|
|
|
|
rev = "soapy-hackrf-${version}";
|
2018-05-17 21:14:13 +01:00
|
|
|
sha256 = "1awn89z462500gb3fjb7x61b1znkjri9n1d39bqfip1qk4s11pxc";
|
2018-04-25 18:01:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
buildInputs = [ hackrf soapysdr ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/pothosware/SoapyHackRF;
|
|
|
|
description = "SoapySDR plugin for HackRF devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|