nixpkgs/pkgs/applications/radio/qradiolink/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

88 lines
1.7 KiB
Nix
Raw Normal View History

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