3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/radio/qradiolink/default.nix

81 lines
1.5 KiB
Nix
Raw Normal View History

{ lib
, fetchFromGitHub
, libpulseaudio
, libconfig
# Needs a gnuradio built with qt gui support
, gnuradio3_8
# Not gnuradioPackages'
, codec2
, log4cpp
, gmp
, gsm
, libopus
, libjpeg
, libsndfile
, libftdi
, protobuf
, speex
, speexdsp
}:
2018-08-12 23:42:15 +01:00
gnuradio3_8.pkgs.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "qradiolink";
version = "0.8.5-2";
2018-08-12 23:42:15 +01:00
src = fetchFromGitHub {
owner = "qradiolink";
2018-08-12 23:42:15 +01:00
repo = "qradiolink";
2019-09-09 00:38:31 +01:00
rev = version;
sha256 = "MgHfKR3AJW3pIN9oCBr4BWxk1fGSCpLmMzjxvuTmuFA=";
2018-08-12 23:42:15 +01:00
};
preBuild = ''
cd src/ext
2018-08-12 23:42:15 +01:00
protoc --cpp_out=. Mumble.proto
protoc --cpp_out=. QRadioLink.proto
cd ../..
2018-08-12 23:42:15 +01:00
qmake
'';
installPhase = ''
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 = [
gnuradio3_8.unwrapped.boost
codec2
log4cpp
gmp
2018-08-12 23:42:15 +01:00
libpulseaudio
libconfig
gsm
gnuradio3_8.pkgs.osmosdr
2018-08-12 23:42:15 +01:00
libopus
libjpeg
speex
speexdsp
gnuradio3_8.qt.qtbase
gnuradio3_8.qt.qtmultimedia
libftdi
libsndfile
gnuradio3_8.qwt
];
nativeBuildInputs = [
protobuf
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;
meta = with lib; {
2018-08-12 23:42:15 +01:00
description = "SDR transceiver application for analog and digital modes";
homepage = "http://qradiolink.org/";
2018-08-12 23:42:15 +01:00
license = licenses.agpl3;
maintainers = [ maintainers.markuskowa ];
platforms = platforms.linux;
};
}