2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, boost, gnuradio, log4cpp
|
2016-08-26 16:57:14 +01:00
|
|
|
, makeWrapper, pythonSupport ? true, python, swig
|
|
|
|
}:
|
|
|
|
|
|
|
|
assert pythonSupport -> python != null && swig != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gr-rds";
|
2019-01-17 22:37:13 +00:00
|
|
|
version = "1.1.0";
|
2016-08-26 16:57:14 +01: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 16:57:14 +01:00
|
|
|
};
|
|
|
|
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2016-08-26 16:57:14 +01:00
|
|
|
buildInputs = [
|
2020-12-31 07:48:55 +00:00
|
|
|
boost gnuradio makeWrapper log4cpp
|
2021-01-15 05:42:41 +00:00
|
|
|
] ++ lib.optionals pythonSupport [ python swig ];
|
2016-08-26 16:57:14 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for prog in "$out"/bin/*; do
|
|
|
|
wrapProgram "$prog" --set PYTHONPATH $PYTHONPATH:$(toPythonPath "$out")
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-08-26 16:57:14 +01:00
|
|
|
description = "Gnuradio block for radio data system";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bastibl/gr-rds";
|
2016-08-26 16:57:14 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2017-07-15 01:26:42 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-08-26 16:57:14 +01:00
|
|
|
maintainers = with maintainers; [ mog ];
|
|
|
|
};
|
|
|
|
}
|