mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 19:15:39 +00:00
09f9e5456b
This allows to build gnuradio-with-packages again on darwin * libosmocore: remove darwin from platforms * gnuradio-limesdr: remove darwin from platforms
39 lines
938 B
Nix
39 lines
938 B
Nix
{ stdenv, fetchFromGitHub, cmake, boost, gnuradio
|
|
, pythonSupport ? true, python, swig, limesuite
|
|
} :
|
|
|
|
assert pythonSupport -> python != null && swig != null;
|
|
|
|
let
|
|
version = "1.0.0-RC";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
name = "gnuradio-limesdr-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "myriadrf";
|
|
repo = "gr-limesdr";
|
|
rev = "v${version}";
|
|
sha256 = "0b34mg9nfar2gcir98004ixrxmxi8p3p2hrvvi1razd869x2a0lf";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
] ++ 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 ];
|
|
};
|
|
}
|