2020-10-16 22:31:20 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libpulseaudio
|
|
|
|
, libconfig
|
2020-12-10 21:49:07 +01:00
|
|
|
# Needs a gnuradio built with qt gui support
|
2021-02-15 21:14:54 +01:00
|
|
|
, gnuradio3_8
|
2021-10-21 14:45:55 +02:00
|
|
|
, thrift
|
2020-12-10 21:49:07 +01:00
|
|
|
# Not gnuradioPackages'
|
|
|
|
, codec2
|
|
|
|
, gmp
|
2020-10-16 22:31:20 +02:00
|
|
|
, gsm
|
|
|
|
, libopus
|
|
|
|
, libjpeg
|
2020-12-10 21:49:07 +01:00
|
|
|
, libsndfile
|
|
|
|
, libftdi
|
2021-12-04 19:17:38 +01:00
|
|
|
, limesuite
|
2022-12-18 20:40:35 +01:00
|
|
|
, soapysdr-with-plugins
|
2020-10-16 22:31:20 +02:00
|
|
|
, protobuf
|
|
|
|
, speex
|
2020-12-10 21:49:07 +01:00
|
|
|
, speexdsp
|
2022-11-01 23:27:17 +01:00
|
|
|
, cppzmq
|
|
|
|
, zeromq
|
2020-12-10 21:49:07 +01:00
|
|
|
}:
|
2018-08-13 00:42:15 +02:00
|
|
|
|
2021-02-15 21:14:54 +01:00
|
|
|
gnuradio3_8.pkgs.mkDerivation rec {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "qradiolink";
|
2022-12-18 20:40:35 +01:00
|
|
|
version = "0.8.8-1";
|
2018-08-13 00:42:15 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-10 21:49:07 +01:00
|
|
|
owner = "qradiolink";
|
2018-08-13 00:42:15 +02:00
|
|
|
repo = "qradiolink";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2022-12-18 20:40:35 +01:00
|
|
|
sha256 = "sha256-2M5TSTNbbH188GiKqjP+IfBqks379Fw0fiGLBNiaxEg=";
|
2018-08-13 00:42:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
2020-12-10 21:49:07 +01:00
|
|
|
cd src/ext
|
2018-08-13 00:42:15 +02:00
|
|
|
protoc --cpp_out=. Mumble.proto
|
|
|
|
protoc --cpp_out=. QRadioLink.proto
|
2020-12-10 21:49:07 +01:00
|
|
|
cd ../..
|
2018-08-13 00:42:15 +02:00
|
|
|
qmake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-12-10 21:49:07 +01: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
|
2018-08-13 00:42:15 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-02-15 21:14:54 +01:00
|
|
|
gnuradio3_8.unwrapped.boost
|
2020-12-10 21:49:07 +01:00
|
|
|
codec2
|
2022-02-18 09:13:16 +01:00
|
|
|
gnuradio3_8.unwrapped.log4cpp
|
2020-12-10 21:49:07 +01:00
|
|
|
gmp
|
2018-08-13 00:42:15 +02:00
|
|
|
libpulseaudio
|
|
|
|
libconfig
|
|
|
|
gsm
|
2021-02-15 21:14:54 +01:00
|
|
|
gnuradio3_8.pkgs.osmosdr
|
2018-08-13 00:42:15 +02:00
|
|
|
libopus
|
|
|
|
libjpeg
|
2021-12-04 19:17:38 +01:00
|
|
|
limesuite
|
2022-12-18 20:40:35 +01:00
|
|
|
soapysdr-with-plugins
|
2018-08-13 00:42:15 +02:00
|
|
|
speex
|
2020-12-10 21:49:07 +01:00
|
|
|
speexdsp
|
2021-02-15 21:14:54 +01:00
|
|
|
gnuradio3_8.qt.qtbase
|
|
|
|
gnuradio3_8.qt.qtmultimedia
|
2020-12-10 21:49:07 +01:00
|
|
|
libftdi
|
|
|
|
libsndfile
|
2022-11-01 23:27:17 +01:00
|
|
|
cppzmq
|
|
|
|
zeromq
|
2021-02-15 21:14:54 +01:00
|
|
|
gnuradio3_8.qwt
|
2021-10-21 14:45:55 +02:00
|
|
|
] ++ lib.optionals (gnuradio3_8.hasFeature "gr-ctrlport") [
|
|
|
|
thrift
|
|
|
|
gnuradio3_8.unwrapped.python.pkgs.thrift
|
2020-10-16 22:31:20 +02:00
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
protobuf
|
2021-02-15 21:14:54 +01:00
|
|
|
gnuradio3_8.qt.qmake
|
|
|
|
gnuradio3_8.qt.wrapQtAppsHook
|
2018-08-13 00:42:15 +02:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-08-13 00:42:15 +02:00
|
|
|
description = "SDR transceiver application for analog and digital modes";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://qradiolink.org/";
|
2018-08-13 00:42:15 +02:00
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|