1 { lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, autoconf, automake, pkg-config, glib
2 , perl, ncurses5, hamlib, xmlrpc_c }:
4 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
11 rev = "${pname}-${version}";
12 sha256 = "1xpgs4k27pjd9mianfknknp6mf34365bcp96wrv5xh4dhph573rj";
16 # Pull upstream fix for ncurses-6.3:
17 # https://github.com/Tlf/tlf/pull/282
18 # We use Debian's patch as upstream fixes don't apply as is due to
19 # related code changes. The change will be a part of 1.4.2 release.
21 name = "ncurses-6.3.patch";
22 url = "https://salsa.debian.org/debian-hamradio-team/tlf/-/raw/5a2d79fc35bde97f653b1373fd970d41fe01a3ec/debian/patches/warnings-as-errors.patch?inline=false";
23 sha256 = "1zi1dd4vqkgl2pg29lnhj91ralqg58gmkzq9fkcx0dyakbjm6070";
27 nativeBuildInputs = [ autoreconfHook autoconf automake pkg-config perl ];
28 buildInputs = [ glib ncurses5 hamlib xmlrpc_c ];
30 configureFlags = [ "--enable-hamlib" "--enable-fldigi-xmlrpc" ];
34 ln -s ${ncurses5.out}/lib/libtinfo.so.5 $out/lib/libtinfo.so.5
38 description = "Advanced ham radio logging and contest program";
40 TLF is a curses based console mode general logging and contest program for
43 It supports the CQWW, the WPX, the ARRL-DX, the ARRL-FD, the PACC and the
44 EU SPRINT shortwave contests (single operator) as well as a LOT MORE basic
45 contests, general QSO and DXpedition mode.
47 homepage = "https://tlf.github.io/";
48 license = licenses.gpl2;
50 platforms = platforms.linux;