Skip to content

Commit

Permalink
qradiolink: switch to GR 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
doronbehar committed Dec 23, 2024
1 parent 729ca81 commit 3899af8
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions pkgs/applications/radio/qradiolink/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
, libpulseaudio
, libconfig
# Needs a gnuradio built with qt gui support
, gnuradio3_8
, gnuradio
, log4cpp
, thrift
# Not gnuradioPackages'
, codec2
Expand All @@ -22,15 +23,16 @@
, uhd
}:

gnuradio3_8.pkgs.mkDerivation rec {
gnuradio.pkgs.mkDerivation rec {
pname = "qradiolink";
version = "0.9.0-1";
# https://github.com/qradiolink/qradiolink/tree/gr_3.10
version = "0.9.0-1-unstable-2024-08-29";

src = fetchFromGitHub {
owner = "qradiolink";
repo = "qradiolink";
rev = version;
sha256 = "sha256-Js6DzmUG8O9c9VvjE6hc7JGuFmgc1Wq41zVJb8Us/yI=";
rev = "f1006a20e0a642d0ac20aab18b19fa97567f2621";
sha256 = "sha256-9AYFO+mmwLAH8gEpZn6qcENabc/KBMcg/0wCTKsInNY=";
};

preBuild = ''
Expand All @@ -48,35 +50,40 @@ gnuradio3_8.pkgs.mkDerivation rec {
'';

buildInputs = [
gnuradio3_8.unwrapped.boost
gnuradio.unwrapped.boost
codec2
gnuradio3_8.unwrapped.logLib
gnuradio.unwrapped.logLib
# gnuradio uses it's own log library (spdlog), and qradiolink is still
# using the old gnuradio log library log4cpp. Perhaps this won't be needed
# once the gr_3.10 branch will mature enough to be merged into qradiolink's
# master branch.
log4cpp
gmp
libpulseaudio
libconfig
gsm
gnuradio3_8.pkgs.osmosdr
gnuradio.pkgs.osmosdr
libopus
libjpeg
limesuite
soapysdr-with-plugins
speex
speexdsp
gnuradio3_8.qt.qtbase
gnuradio3_8.qt.qtmultimedia
gnuradio.qt.qtbase
gnuradio.qt.qtmultimedia
libftdi
libsndfile
cppzmq
gnuradio3_8.qwt
gnuradio.qwt
uhd
] ++ lib.optionals (gnuradio3_8.hasFeature "gr-ctrlport") [
] ++ lib.optionals (gnuradio.hasFeature "gr-ctrlport") [
thrift
gnuradio3_8.unwrapped.python.pkgs.thrift
gnuradio.unwrapped.python.pkgs.thrift
];
nativeBuildInputs = [
protobuf
gnuradio3_8.qt.qmake
gnuradio3_8.qt.wrapQtAppsHook
gnuradio.qt.qmake
gnuradio.qt.wrapQtAppsHook
];

meta = with lib; {
Expand Down

0 comments on commit 3899af8

Please sign in to comment.