@@ -0,0 +1,39 @@
1+{ stdenv, fetchurl, makeWrapper, cmake, expat, openssl, zlib, db, curl, wxGTK }:
2+
3+let
4+ lib_suffix =
5+ if stdenv.system == "x86_64-linux" then
6+ "64"
7+ else
8+ "";
9+in
10+stdenv.mkDerivation rec {
11+ name = "tqsl-${version}";
12+ version = "2.3.1";
13+
14+ src = fetchurl {
15+ url = "http://www.arrl.org/files/file/LoTW%20Instructions/${name}.tar.gz";
16+ sha256 = "10cjlilampwl10hwb7m28m5z9gyrscvvc1rryfjnhj9q2x4ppgxv";
17+ };
18+
19+ nativeBuildInputs = [ makeWrapper ];
20+ buildInputs = [
21+ cmake
22+ expat
23+ openssl
24+ zlib
25+ db
26+ curl
27+ wxGTK
28+ ];
29+
30+ patches = [ ./cmake_lib_path.patch ];
31+
32+ meta = with stdenv.lib; {
33+ description = "Software for using the ARRL Logbook of the World";
34+ homepage = https://lotw.arrl.org/;
35+ license = licenses.bsd3;
36+ platforms = platforms.linux;
37+ maintainers = [ maintainers.dpflug ];
38+ };
39+}