mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 20:53:48 +00:00
88519c6309
Inherit spdlog for GR 3.10 and log4cpp for lower GR versions. Inherit both of these in the scope of the GR packages attribute set. Also use the inherited log4cpp in qradiolink, gqrx & gnss-sdr.
84 lines
1.6 KiB
Nix
84 lines
1.6 KiB
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, libpulseaudio
|
|
, libconfig
|
|
# Needs a gnuradio built with qt gui support
|
|
, gnuradio3_8
|
|
, thrift
|
|
# Not gnuradioPackages'
|
|
, codec2
|
|
, gmp
|
|
, gsm
|
|
, libopus
|
|
, libjpeg
|
|
, libsndfile
|
|
, libftdi
|
|
, limesuite
|
|
, protobuf
|
|
, speex
|
|
, speexdsp
|
|
}:
|
|
|
|
gnuradio3_8.pkgs.mkDerivation rec {
|
|
pname = "qradiolink";
|
|
version = "0.8.6-2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "qradiolink";
|
|
repo = "qradiolink";
|
|
rev = version;
|
|
sha256 = "1694yyw0vc77m5pbc5rwl6khd8000dbrliz3q4vsa9dqnfnz1777";
|
|
};
|
|
|
|
preBuild = ''
|
|
cd src/ext
|
|
protoc --cpp_out=. Mumble.proto
|
|
protoc --cpp_out=. QRadioLink.proto
|
|
cd ../..
|
|
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
|
|
'';
|
|
|
|
buildInputs = [
|
|
gnuradio3_8.unwrapped.boost
|
|
codec2
|
|
gnuradio3_8.unwrapped.log4cpp
|
|
gmp
|
|
libpulseaudio
|
|
libconfig
|
|
gsm
|
|
gnuradio3_8.pkgs.osmosdr
|
|
libopus
|
|
libjpeg
|
|
limesuite
|
|
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
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "SDR transceiver application for analog and digital modes";
|
|
homepage = "http://qradiolink.org/";
|
|
license = licenses.agpl3;
|
|
maintainers = [ maintainers.markuskowa ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|