2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, alsaLib, boost
|
2018-08-12 22:42:15 +00:00
|
|
|
, qt4, libpulseaudio, codec2, libconfig
|
2019-05-27 12:26:31 +00:00
|
|
|
, gnuradio, gr-osmosdr, gsm
|
2018-08-12 22:42:15 +00:00
|
|
|
, libopus, libjpeg, protobuf, qwt, speex
|
|
|
|
} :
|
|
|
|
|
|
|
|
let
|
2019-09-29 20:21:57 +00:00
|
|
|
version = "0.5.0";
|
2018-08-12 22:42:15 +00:00
|
|
|
|
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "qradiolink";
|
|
|
|
inherit version;
|
2018-08-12 22:42:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kantooon";
|
|
|
|
repo = "qradiolink";
|
2019-09-08 23:38:31 +00:00
|
|
|
rev = version;
|
2019-09-29 20:21:57 +00:00
|
|
|
sha256 = "0xhg5zhjznmls5m3rhpk1qx0dipxmca12s85w15d0i7qwva2f1gi";
|
2018-08-12 22:42:15 +00: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 = [
|
|
|
|
qt4
|
|
|
|
alsaLib
|
|
|
|
boost
|
|
|
|
libpulseaudio
|
|
|
|
codec2
|
|
|
|
libconfig
|
|
|
|
gsm
|
|
|
|
gnuradio
|
2019-05-27 12:26:31 +00:00
|
|
|
gr-osmosdr
|
2018-08-12 22:42:15 +00:00
|
|
|
libopus
|
|
|
|
libjpeg
|
|
|
|
protobuf
|
|
|
|
speex
|
|
|
|
qwt
|
|
|
|
];
|
|
|
|
|
2018-09-25 11:39:59 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|