2021-12-06 10:34:19 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, autoconf, automake, pkg-config, glib
|
2019-09-18 17:57:20 +00:00
|
|
|
, perl, ncurses5, hamlib, xmlrpc_c }:
|
2019-02-10 11:53:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tlf";
|
2020-05-04 09:58:09 +00:00
|
|
|
version = "1.4.1";
|
2019-02-10 11:53:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "${pname}-${version}";
|
2020-05-04 09:58:09 +00:00
|
|
|
sha256 = "1xpgs4k27pjd9mianfknknp6mf34365bcp96wrv5xh4dhph573rj";
|
2019-02-10 11:53:05 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 10:34:19 +00:00
|
|
|
patches = [
|
|
|
|
# Pull upstream fix for ncurses-6.3:
|
|
|
|
# https://github.com/Tlf/tlf/pull/282
|
|
|
|
# We use Debian's patch as upstream fixes don't apply as is due to
|
|
|
|
# related code changes. The change will be a part of 1.4.2 release.
|
|
|
|
(fetchpatch {
|
|
|
|
name = "ncurses-6.3.patch";
|
|
|
|
url = "https://salsa.debian.org/debian-hamradio-team/tlf/-/raw/5a2d79fc35bde97f653b1373fd970d41fe01a3ec/debian/patches/warnings-as-errors.patch?inline=false";
|
|
|
|
sha256 = "1zi1dd4vqkgl2pg29lnhj91ralqg58gmkzq9fkcx0dyakbjm6070";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook autoconf automake pkg-config perl ];
|
2019-09-18 17:57:20 +00:00
|
|
|
buildInputs = [ glib ncurses5 hamlib xmlrpc_c ];
|
2019-02-10 11:53:05 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--enable-hamlib" "--enable-fldigi-xmlrpc" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/lib
|
2019-09-18 17:57:20 +00:00
|
|
|
ln -s ${ncurses5.out}/lib/libtinfo.so.5 $out/lib/libtinfo.so.5
|
2019-02-10 11:53:05 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-02-10 11:53:05 +00:00
|
|
|
description = "Advanced ham radio logging and contest program";
|
|
|
|
longDescription = ''
|
|
|
|
TLF is a curses based console mode general logging and contest program for
|
|
|
|
amateur radio.
|
|
|
|
|
|
|
|
It supports the CQWW, the WPX, the ARRL-DX, the ARRL-FD, the PACC and the
|
|
|
|
EU SPRINT shortwave contests (single operator) as well as a LOT MORE basic
|
|
|
|
contests, general QSO and DXpedition mode.
|
|
|
|
'';
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://tlf.github.io/";
|
2019-02-10 11:53:05 +00:00
|
|
|
license = licenses.gpl2;
|
2022-07-14 12:39:58 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-02-10 11:53:05 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|