2018-02-17 11:06:27 +00:00
|
|
|
{ stdenv, fetchurl, asciidoc, asciidoctor, autoconf, automake, cmake,
|
2018-07-21 01:44:44 +01:00
|
|
|
docbook_xsl, fftw, fftwFloat, gfortran, libtool, qtbase,
|
2018-02-17 11:06:27 +00:00
|
|
|
qtmultimedia, qtserialport, texinfo, libusb1 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "wsjtx-${version}";
|
2019-01-05 15:16:52 +00:00
|
|
|
version = "2.0.0";
|
2018-02-17 11:06:27 +00:00
|
|
|
|
2019-01-05 15:16:52 +00:00
|
|
|
# This is a "superbuild" tarball containing both wsjtx and a hamlib fork
|
2018-02-17 11:06:27 +00:00
|
|
|
src = fetchurl {
|
2019-01-05 15:16:52 +00:00
|
|
|
url = "http://physics.princeton.edu/pulsar/k1jt/wsjtx-${version}.tgz";
|
|
|
|
sha256 = "66434f69f256742da1fe057ec51e4464cab2614f0bfb1a310c04a385b77bd014";
|
2018-02-17 11:06:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Hamlib builds with autotools, wsjtx builds with cmake
|
|
|
|
# Omitting pkgconfig because it causes issues locating the built hamlib
|
|
|
|
nativeBuildInputs = [
|
|
|
|
asciidoc asciidoctor autoconf automake cmake docbook_xsl gfortran libtool
|
|
|
|
texinfo
|
|
|
|
];
|
|
|
|
buildInputs = [ fftw fftwFloat libusb1 qtbase qtmultimedia qtserialport ];
|
|
|
|
|
2019-01-05 15:16:52 +00:00
|
|
|
# Remove Git dependency from superbuild since sources are included
|
|
|
|
patches = [ ./super.patch ];
|
|
|
|
|
|
|
|
# Superbuild has its own patch step after it extracts the inner archives
|
2018-02-17 11:06:27 +00:00
|
|
|
postPatch = "cp ${./wsjtx.patch} wsjtx.patch";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Weak-signal digital communication modes for amateur radio";
|
|
|
|
longDescription = ''
|
|
|
|
WSJT-X implements communication protocols or "modes" called FT8, JT4, JT9,
|
|
|
|
JT65, QRA64, ISCAT, MSK144, and WSPR, as well as one called Echo for
|
|
|
|
detecting and measuring your own radio signals reflected from the Moon.
|
|
|
|
These modes were all designed for making reliable, confirmed ham radio
|
|
|
|
contacts under extreme weak-signal conditions.
|
|
|
|
'';
|
|
|
|
homepage = http://physics.princeton.edu/pulsar/k1jt/wsjtx.html;
|
|
|
|
# Older licenses are for the statically-linked hamlib
|
|
|
|
license = with licenses; [ gpl3Plus gpl2Plus lgpl21Plus ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.lasandell ];
|
|
|
|
};
|
|
|
|
}
|