2020-10-05 23:27:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, boost, gnuradio, log4cpp
|
2016-08-26 15:57:14 +00:00
|
|
|
, makeWrapper, pythonSupport ? true, python, swig
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert pythonSupport -> python != null && swig != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "gr-rds";
|
2019-01-17 22:37:13 +00:00
|
|
|
version = "1.1.0";
|
2016-08-26 15:57:14 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bastibl";
|
|
|
|
repo = "gr-rds";
|
2018-11-07 08:41:57 +00:00
|
|
|
rev = "v${version}";
|
2019-01-17 22:37:13 +00:00
|
|
|
sha256 = "0jkzchvw0ivcxsjhi1h0mf7k13araxf5m4wi5v9xdgqxvipjzqfy";
|
2016-08-26 15:57:14 +00:00
|
|
|
};
|
|
|
|
|
2017-09-14 19:24:37 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-08-26 15:57:14 +00:00
|
|
|
buildInputs = [
|
2020-10-05 23:27:00 +00:00
|
|
|
cmake boost gnuradio makeWrapper log4cpp
|
2016-08-26 15:57:14 +00:00
|
|
|
] ++ stdenv.lib.optionals pythonSupport [ python swig ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for prog in "$out"/bin/*; do
|
|
|
|
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2017-07-15 00:27:30 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-08-26 15:57:14 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Gnuradio block for radio data system";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/bastibl/gr-rds";
|
2016-08-26 15:57:14 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2017-07-15 00:26:42 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-08-26 15:57:14 +00:00
|
|
|
maintainers = with maintainers; [ mog ];
|
|
|
|
};
|
|
|
|
}
|