2020-10-16 22:31:20 +02:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libpulseaudio
|
|
|
|
, libconfig
|
|
|
|
, gnuradio
|
|
|
|
, gnuradioPackages
|
|
|
|
, gsm
|
|
|
|
, libopus
|
|
|
|
, libjpeg
|
|
|
|
, protobuf
|
|
|
|
, speex
|
|
|
|
, qmake4Hook
|
2018-08-13 00:42:15 +02:00
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2019-09-29 22:21:57 +02:00
|
|
|
version = "0.5.0";
|
2018-08-13 00:42:15 +02:00
|
|
|
|
2020-10-16 22:31:20 +02:00
|
|
|
in mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "qradiolink";
|
|
|
|
inherit version;
|
2018-08-13 00:42:15 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kantooon";
|
|
|
|
repo = "qradiolink";
|
2019-09-09 01:38:31 +02:00
|
|
|
rev = version;
|
2019-09-29 22:21:57 +02:00
|
|
|
sha256 = "0xhg5zhjznmls5m3rhpk1qx0dipxmca12s85w15d0i7qwva2f1gi";
|
2018-08-13 00:42:15 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
cd ext
|
|
|
|
protoc --cpp_out=. Mumble.proto
|
|
|
|
protoc --cpp_out=. QRadioLink.proto
|
|
|
|
cd ..
|
|
|
|
qmake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp qradiolink $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libpulseaudio
|
|
|
|
libconfig
|
|
|
|
gsm
|
2020-10-16 22:31:20 +02:00
|
|
|
gnuradioPackages.osmosdr
|
2018-08-13 00:42:15 +02:00
|
|
|
libopus
|
|
|
|
libjpeg
|
|
|
|
speex
|
2020-10-16 22:31:20 +02:00
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
protobuf
|
|
|
|
qmake4Hook
|
2018-08-13 00:42:15 +02:00
|
|
|
];
|
|
|
|
|
2018-09-25 13:39:59 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|