nixpkgs/pkgs/applications/radio/gnuradio/limesdr.nix

41 lines
961 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, gnuradio
, pythonSupport ? true, python, swig, limesuite
} :
assert pythonSupport -> python != null && swig != null;
let
2019-04-02 09:28:41 +00:00
version = "2.0.0";
2019-08-13 21:52:01 +00:00
in stdenv.mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "gr-limesdr";
inherit version;
src = fetchFromGitHub {
owner = "myriadrf";
repo = "gr-limesdr";
rev = "v${version}";
2019-04-02 09:28:41 +00:00
sha256 = "0ldqvfwl0gil89l9s31fjf9d7ki0dk572i8vna336igfaz348ypq";
};
nativeBuildInputs = [
cmake
pkgconfig
] ++ 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";
homepage = "https://wiki.myriadrf.org/Gr-limesdr_Plugin_for_GNURadio";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.markuskowa ];
};
}