mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 00:53:57 +00:00
ed44b466e6
Since gnuradio-runtime is compiled with log4cpp, all plugins that need gnuradio-runtime (which is all of them probably) need log4cpp as well. Add python.pkgs.cheetah to inputs of gr-osmosdr as it somehow started to be needed.
41 lines
978 B
Nix
41 lines
978 B
Nix
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, gnuradio
|
|
, pythonSupport ? true, python, swig, limesuite, log4cpp
|
|
} :
|
|
|
|
assert pythonSupport -> python != null && swig != null;
|
|
|
|
let
|
|
version = "2.0.0";
|
|
|
|
in stdenv.mkDerivation {
|
|
pname = "gr-limesdr";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "myriadrf";
|
|
repo = "gr-limesdr";
|
|
rev = "v${version}";
|
|
sha256 = "0ldqvfwl0gil89l9s31fjf9d7ki0dk572i8vna336igfaz348ypq";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkgconfig
|
|
] ++ stdenv.lib.optionals pythonSupport [ swig ];
|
|
|
|
buildInputs = [
|
|
boost gnuradio limesuite log4cpp
|
|
] ++ 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 ];
|
|
};
|
|
}
|