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