about summary refs log tree commit diff
diff options
context:
space:
mode:
authormarkuskowa <markus.kowalewski@gmail.com>2019-02-10 17:26:03 +0100
committerGitHub <noreply@github.com>2019-02-10 17:26:03 +0100
commitef5085751aa0b05d61b3d48b6b5b7b6fa647ec26 (patch)
tree9f77a5613d618fd6d80638cb909a66e8ce3107c7
parent3e814327b15dec39d5e0b1f51b0c402331ee3fc2 (diff)
parent319c412b553322f820b45c554b10767bec3bd0a9 (diff)
downloadnixlib-ef5085751aa0b05d61b3d48b6b5b7b6fa647ec26.tar
nixlib-ef5085751aa0b05d61b3d48b6b5b7b6fa647ec26.tar.gz
nixlib-ef5085751aa0b05d61b3d48b6b5b7b6fa647ec26.tar.bz2
nixlib-ef5085751aa0b05d61b3d48b6b5b7b6fa647ec26.tar.lz
nixlib-ef5085751aa0b05d61b3d48b6b5b7b6fa647ec26.tar.xz
nixlib-ef5085751aa0b05d61b3d48b6b5b7b6fa647ec26.tar.zst
nixlib-ef5085751aa0b05d61b3d48b6b5b7b6fa647ec26.zip
Merge pull request #55511 from etu/init-tlf
tlf: Init at 1.3.2
-rw-r--r--pkgs/applications/radio/tlf/default.nix42
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/radio/tlf/default.nix b/pkgs/applications/radio/tlf/default.nix
new file mode 100644
index 000000000000..92183306038b
--- /dev/null
+++ b/pkgs/applications/radio/tlf/default.nix
@@ -0,0 +1,42 @@
+{ stdenv, fetchFromGitHub, autoreconfHook, autoconf, automake, pkgconfig, glib
+, perl, ncurses, hamlib, xmlrpc_c }:
+
+stdenv.mkDerivation rec {
+  pname = "tlf";
+  version = "1.3.2";
+
+  src = fetchFromGitHub {
+    owner = pname;
+    repo = pname;
+    rev = "${pname}-${version}";
+    sha256 = "0gniysjm8aq5anq0a0az31vd6h1vyg56bifc7rpf53lsh9hkzmgc";
+  };
+
+  nativeBuildInputs = [ autoreconfHook autoconf automake pkgconfig perl ];
+  buildInputs = [ glib ncurses hamlib xmlrpc_c ];
+
+  configureFlags = [ "--enable-hamlib" "--enable-fldigi-xmlrpc" ];
+
+  postInstall = ''
+    mkdir -p $out/lib
+
+    # Hack around lack of libtinfo in NixOS
+    ln -s ${ncurses.out}/lib/libncursesw.so.6 $out/lib/libtinfo.so.5
+  '';
+
+  meta = with stdenv.lib; {
+    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.
+    '';
+    homepage = https://tlf.github.io/;
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ etu ];
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index b51babe1c9ca..13674dfb3bdc 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -19694,6 +19694,8 @@ in
 
   tla = callPackage ../applications/version-management/arch { };
 
+  tlf = callPackage ../applications/radio/tlf { };
+
   tlp = callPackage ../tools/misc/tlp {
     inherit (linuxPackages) x86_energy_perf_policy;
   };