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

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

84 lines
1.6 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
, protobuf
, speex
, speexdsp
}:
2018-08-12 22:42:15 +00:00
gnuradio3_8.pkgs.mkDerivation rec {
2019-08-13 21:52:01 +00:00
pname = "qradiolink";
2021-12-04 18:17:38 +00:00
version = "0.8.6-2";
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;
2021-12-04 18:17:38 +00:00
sha256 = "1694yyw0vc77m5pbc5rwl6khd8000dbrliz3q4vsa9dqnfnz1777";
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.log4cpp
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
2018-08-12 22:42:15 +00:00
speex
speexdsp
gnuradio3_8.qt.qtbase
gnuradio3_8.qt.qtmultimedia
libftdi
libsndfile
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;
};
}