2020-10-16 21:31:20 +01: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
|
2020-12-10 20:49:07 +00:00
|
|
|
# Not gnuradioPackages'
|
|
|
|
, codec2
|
|
|
|
, log4cpp
|
|
|
|
, gmp
|
2020-10-16 21:31:20 +01:00
|
|
|
, gsm
|
|
|
|
, libopus
|
|
|
|
, libjpeg
|
2020-12-10 20:49:07 +00:00
|
|
|
, libsndfile
|
|
|
|
, libftdi
|
2020-10-16 21:31:20 +01:00
|
|
|
, protobuf
|
|
|
|
, speex
|
2020-12-10 20:49:07 +00:00
|
|
|
, speexdsp
|
|
|
|
}:
|
2018-08-12 23:42:15 +01:00
|
|
|
|
2021-02-15 20:14:54 +00:00
|
|
|
gnuradio3_8.pkgs.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "qradiolink";
|
2020-12-10 20:49:07 +00:00
|
|
|
version = "0.8.5-2";
|
2018-08-12 23:42:15 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-12-10 20:49:07 +00:00
|
|
|
owner = "qradiolink";
|
2018-08-12 23:42:15 +01:00
|
|
|
repo = "qradiolink";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2020-12-10 20:49:07 +00:00
|
|
|
sha256 = "MgHfKR3AJW3pIN9oCBr4BWxk1fGSCpLmMzjxvuTmuFA=";
|
2018-08-12 23:42:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
2020-12-10 20:49:07 +00:00
|
|
|
cd src/ext
|
2018-08-12 23:42:15 +01:00
|
|
|
protoc --cpp_out=. Mumble.proto
|
|
|
|
protoc --cpp_out=. QRadioLink.proto
|
2020-12-10 20:49:07 +00:00
|
|
|
cd ../..
|
2018-08-12 23:42:15 +01: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 23:42:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-02-15 20:14:54 +00:00
|
|
|
gnuradio3_8.unwrapped.boost
|
2020-12-10 20:49:07 +00:00
|
|
|
codec2
|
|
|
|
log4cpp
|
|
|
|
gmp
|
2018-08-12 23:42:15 +01:00
|
|
|
libpulseaudio
|
|
|
|
libconfig
|
|
|
|
gsm
|
2021-02-15 20:14:54 +00:00
|
|
|
gnuradio3_8.pkgs.osmosdr
|
2018-08-12 23:42:15 +01:00
|
|
|
libopus
|
|
|
|
libjpeg
|
|
|
|
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
|
2020-10-16 21:31:20 +01:00
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
protobuf
|
2021-02-15 20:14:54 +00:00
|
|
|
gnuradio3_8.qt.qmake
|
|
|
|
gnuradio3_8.qt.wrapQtAppsHook
|
2018-08-12 23:42:15 +01:00
|
|
|
];
|
|
|
|
|
2018-09-25 12:39:59 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-12 23:42:15 +01:00
|
|
|
description = "SDR transceiver application for analog and digital modes";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://qradiolink.org/";
|
2018-08-12 23:42:15 +01:00
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = [ maintainers.markuskowa ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|