2021-03-15 08:37:03 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libpulseaudio
|
|
|
|
, libconfig
|
|
|
|
# Needs a gnuradio built with qt gui support
|
|
|
|
, gnuradio3_8
|
2021-10-28 06:52:43 +00:00
|
|
|
, thrift
|
2021-03-15 08:37:03 +00:00
|
|
|
# Not gnuradioPackages'
|
|
|
|
, codec2
|
|
|
|
, gmp
|
|
|
|
, gsm
|
|
|
|
, libopus
|
|
|
|
, libjpeg
|
|
|
|
, libsndfile
|
|
|
|
, libftdi
|
2021-12-06 16:07:01 +00:00
|
|
|
, limesuite
|
2022-12-28 21:21:41 +00:00
|
|
|
, soapysdr-with-plugins
|
2021-03-15 08:37:03 +00:00
|
|
|
, protobuf
|
|
|
|
, speex
|
|
|
|
, speexdsp
|
2022-11-02 22:02:43 +00:00
|
|
|
, cppzmq
|
2021-03-15 08:37:03 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
gnuradio3_8.pkgs.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "qradiolink";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.8.11-1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-03-15 08:37:03 +00:00
|
|
|
owner = "qradiolink";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "qradiolink";
|
|
|
|
rev = version;
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-62+eKaLt9DlTebbnLPVJFx68bfWb7BrdQHocyJTfK28=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
2021-03-15 08:37:03 +00:00
|
|
|
cd src/ext
|
2020-04-24 23:36:52 +00:00
|
|
|
protoc --cpp_out=. Mumble.proto
|
|
|
|
protoc --cpp_out=. QRadioLink.proto
|
2021-03-15 08:37:03 +00:00
|
|
|
cd ../..
|
2020-04-24 23:36:52 +00:00
|
|
|
qmake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-03-15 08:37:03 +00:00
|
|
|
install -D qradiolink $out/bin/qradiolink
|
|
|
|
install -Dm644 src/res/icon.png $out/share/pixmaps/qradiolink.png
|
|
|
|
install -Dm644 qradiolink.desktop $out/share/applications/qradiolink.desktop
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-03-15 08:37:03 +00:00
|
|
|
gnuradio3_8.unwrapped.boost
|
2020-04-24 23:36:52 +00:00
|
|
|
codec2
|
2023-04-29 16:46:19 +00:00
|
|
|
gnuradio3_8.unwrapped.logLib
|
2021-03-15 08:37:03 +00:00
|
|
|
gmp
|
|
|
|
libpulseaudio
|
2020-04-24 23:36:52 +00:00
|
|
|
libconfig
|
|
|
|
gsm
|
2021-03-15 08:37:03 +00:00
|
|
|
gnuradio3_8.pkgs.osmosdr
|
2020-04-24 23:36:52 +00:00
|
|
|
libopus
|
|
|
|
libjpeg
|
2021-12-06 16:07:01 +00:00
|
|
|
limesuite
|
2022-12-28 21:21:41 +00:00
|
|
|
soapysdr-with-plugins
|
2020-04-24 23:36:52 +00:00
|
|
|
speex
|
2021-03-15 08:37:03 +00:00
|
|
|
speexdsp
|
|
|
|
gnuradio3_8.qt.qtbase
|
|
|
|
gnuradio3_8.qt.qtmultimedia
|
|
|
|
libftdi
|
|
|
|
libsndfile
|
2022-11-02 22:02:43 +00:00
|
|
|
cppzmq
|
2021-03-15 08:37:03 +00:00
|
|
|
gnuradio3_8.qwt
|
2021-10-28 06:52:43 +00:00
|
|
|
] ++ lib.optionals (gnuradio3_8.hasFeature "gr-ctrlport") [
|
|
|
|
thrift
|
|
|
|
gnuradio3_8.unwrapped.python.pkgs.thrift
|
2021-03-15 08:37:03 +00:00
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
protobuf
|
|
|
|
gnuradio3_8.qt.qmake
|
|
|
|
gnuradio3_8.qt.wrapQtAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "SDR transceiver application for analog and digital modes";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "qradiolink";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://qradiolink.org/";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = licenses.agpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|