2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
2018-04-25 19:01:40 +02:00
|
|
|
, hackrf, soapysdr
|
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2018-05-17 22:14:13 +02:00
|
|
|
version = "0.3.3";
|
2018-04-25 19:01:40 +02:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "soapyhackrf";
|
|
|
|
inherit version;
|
2018-04-25 19:01:40 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pothosware";
|
|
|
|
repo = "SoapyHackRF";
|
|
|
|
rev = "soapy-hackrf-${version}";
|
2018-05-17 22:14:13 +02:00
|
|
|
sha256 = "1awn89z462500gb3fjb7x61b1znkjri9n1d39bqfip1qk4s11pxc";
|
2018-04-25 19:01:40 +02:00
|
|
|
};
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2018-04-25 19:01:40 +02:00
|
|
|
buildInputs = [ hackrf soapysdr ];
|
|
|
|
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/pothosware/SoapyHackRF";
|
2018-04-25 19:01:40 +02:00
|
|
|
description = "SoapySDR plugin for HackRF devices";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|