summary refs log tree commit diff
path: root/pkgs/applications/misc/tqsl/default.nix
blob: b41f5c9a0a70552d67275ccfc49b93bca60cc83d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ stdenv, fetchurl, makeWrapper, cmake, expat, openssl, zlib, db, curl, wxGTK }:

let
  lib_suffix =
  if stdenv.system == "x86_64-linux" then
    "64"
  else
    "";
in
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 ];
  };
}