about summary refs log tree commit diff
path: root/pkgs/applications/radio/tqsl
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2019-02-10 10:55:33 +0100
committerElis Hirwing <elis@hirwing.se>2019-02-10 10:55:33 +0100
commit1540ab34befecf78f7ab8209100ebde317cd33e0 (patch)
tree33832c24fa12719b89b576ec9d85e573221d8271 /pkgs/applications/radio/tqsl
parent2aa0ba2c9b38449b09cdb64d2e320a1dfa28b85c (diff)
tqsl: Move from misc to radio
Diffstat (limited to 'pkgs/applications/radio/tqsl')
-rw-r--r--pkgs/applications/radio/tqsl/cmake_lib_path.patch12
-rw-r--r--pkgs/applications/radio/tqsl/default.nix32
2 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/applications/radio/tqsl/cmake_lib_path.patch b/pkgs/applications/radio/tqsl/cmake_lib_path.patch
new file mode 100644
index 0000000000000..5eed93834632f
--- /dev/null
+++ b/pkgs/applications/radio/tqsl/cmake_lib_path.patch
@@ -0,0 +1,12 @@
+diff -dur tqsl-2.3.1/src/CMakeLists.txt tqsl-2.3.1b/src/CMakeLists.txt
+--- tqsl-2.3.1/src/CMakeLists.txt	2017-04-17 20:53:22.000000000 -0400
++++ tqsl-2.3.1b/src/CMakeLists.txt	2017-10-05 21:14:39.048329343 -0400
+@@ -54,7 +54,7 @@
+ if(NOT APPLE AND NOT WIN32)
+ set_source_files_properties(location.cpp PROPERTIES COMPILE_DEFINITIONS CONFDIR="${CMAKE_INSTALL_PREFIX}/share/TrustedQSL/")
+ set(HEADERS_TO_INSTALL tqsllib.h tqslerrno.h cabrillo.h adif.h tqslconvert.h)
+-install(TARGETS tqsllib DESTINATION lib$(LIB_SUFFIX))
++install(TARGETS tqsllib DESTINATION lib${LIB_SUFFIX})
+ install(FILES config.xml DESTINATION share/TrustedQSL)
+ install(FILES ${HEADERS_TO_INSTALL} DESTINATION include)
+ endif()
diff --git a/pkgs/applications/radio/tqsl/default.nix b/pkgs/applications/radio/tqsl/default.nix
new file mode 100644
index 0000000000000..f001cbcaab92d
--- /dev/null
+++ b/pkgs/applications/radio/tqsl/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchurl, makeWrapper, cmake, expat, openssl, zlib, db, curl, wxGTK }:
+
+stdenv.mkDerivation rec {
+  name = "tqsl-${version}";
+  version = "2.3.1";
+
+  src = fetchurl {
+    url = "https://www.arrl.org/files/file/LoTW%20Instructions/${name}.tar.gz";
+    sha256 = "10cjlilampwl10hwb7m28m5z9gyrscvvc1rryfjnhj9q2x4ppgxv";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+  buildInputs = [
+    cmake
+    expat
+    openssl
+    zlib
+    db
+    curl
+    wxGTK
+  ];
+
+  patches = [ ./cmake_lib_path.patch ];
+
+  meta = with stdenv.lib; {
+    description = "Software for using the ARRL Logbook of the World";
+    homepage = https://lotw.arrl.org/;
+    license = licenses.bsd3;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.dpflug ];
+  };
+}