2019-03-06 10:16:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, gnuradio
|
2018-09-23 09:08:50 +01:00
|
|
|
, pythonSupport ? true, python, swig, limesuite
|
|
|
|
} :
|
|
|
|
|
|
|
|
assert pythonSupport -> python != null && swig != null;
|
|
|
|
|
|
|
|
let
|
2019-04-02 10:28:41 +01:00
|
|
|
version = "2.0.0";
|
2018-09-23 09:08:50 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "gr-limesdr";
|
|
|
|
inherit version;
|
2018-09-23 09:08:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "myriadrf";
|
|
|
|
repo = "gr-limesdr";
|
|
|
|
rev = "v${version}";
|
2019-04-02 10:28:41 +01:00
|
|
|
sha256 = "0ldqvfwl0gil89l9s31fjf9d7ki0dk572i8vna336igfaz348ypq";
|
2018-09-23 09:08:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2019-03-06 10:16:44 +00:00
|
|
|
pkgconfig
|
2018-09-23 09:08:50 +01:00
|
|
|
] ++ stdenv.lib.optionals pythonSupport [ swig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
boost gnuradio limesuite
|
|
|
|
] ++ stdenv.lib.optionals pythonSupport [ python ];
|
|
|
|
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Gnuradio source and sink blocks for LimeSDR";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.myriadrf.org/Gr-limesdr_Plugin_for_GNURadio";
|
2018-09-23 09:08:50 +01:00
|
|
|
license = licenses.mit;
|
2018-12-08 18:37:48 +00:00
|
|
|
platforms = platforms.linux;
|
2018-09-23 09:08:50 +01:00
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
};
|
|
|
|
}
|