2021-06-10 02:57:09 +00:00
|
|
|
{ lib, stdenv, cmake, pkg-config, fetchFromGitHub, makeDesktopItem, alsa-lib, speex
|
2020-01-18 12:54:43 +00:00
|
|
|
, libopus, curl, gsm, libgcrypt, libsigcxx, popt, qtbase, qttools
|
|
|
|
, wrapQtAppsHook, rtl-sdr, tcl, doxygen, groff }:
|
|
|
|
|
|
|
|
let
|
|
|
|
desktopItem = makeDesktopItem rec {
|
|
|
|
name = "Qtel";
|
|
|
|
exec = "qtel";
|
|
|
|
icon = "qtel";
|
|
|
|
desktopName = name;
|
|
|
|
genericName = "EchoLink Client";
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [ "HamRadio" "Qt" "Network" ];
|
2020-01-18 12:54:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
pname = "svxlink";
|
2021-03-13 14:48:09 +00:00
|
|
|
version = "19.09.2";
|
2020-01-18 12:54:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sm0svx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-03-13 14:48:09 +00:00
|
|
|
sha256 = "sha256-riyFEuEmJ7+jYT3UoTTsMUwFdO3y5mjo4z0fcC3O8gY=";
|
2020-01-18 12:54:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DDO_INSTALL_CHOWN=NO"
|
|
|
|
"-DRTLSDR_LIBRARIES=${rtl-sdr}/lib/librtlsdr.so"
|
|
|
|
"-DRTLSDR_INCLUDE_DIRS=${rtl-sdr}/include"
|
|
|
|
"../src"
|
|
|
|
];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config doxygen groff wrapQtAppsHook ];
|
2020-01-18 12:54:43 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-10 02:57:09 +00:00
|
|
|
alsa-lib
|
2020-01-18 12:54:43 +00:00
|
|
|
curl
|
|
|
|
gsm
|
|
|
|
libgcrypt
|
|
|
|
libsigcxx
|
|
|
|
libopus
|
|
|
|
popt
|
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
rtl-sdr
|
|
|
|
speex
|
|
|
|
tcl
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm -f $out/share/applications/*
|
|
|
|
cp -v ${desktopItem}/share/applications/* $out/share/applications
|
|
|
|
mv $out/share/icons/link.xpm $out/share/icons/qtel.xpm
|
|
|
|
|
|
|
|
wrapQtApp $out/bin/qtel
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-01-18 12:54:43 +00:00
|
|
|
description = "Advanced repeater controller and EchoLink software";
|
|
|
|
longDescription = ''
|
|
|
|
Advanced repeater controller and EchoLink software for Linux including a
|
|
|
|
GUI, Qtel - The Qt EchoLink client
|
|
|
|
'';
|
|
|
|
homepage = "http://www.svxlink.org/";
|
|
|
|
license = with licenses; [ gpl2 ];
|
|
|
|
maintainers = with maintainers; [ zaninime ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|