@@ -1,19 +1,17 @@
1−{ fetchurl, stdenv, zlib, expat, which }:
1+{ stdenv, fetchurl, zlib, qt5, which }:
22
3−let version = "1.4.3"; in
4−stdenv.mkDerivation {
3+stdenv.mkDerivation rec {
54 name = "gpsbabel-${version}";
5+ version = "1.5.2";
66
77 src = fetchurl {
88 # gpgbabel.org makes it hard to get the source tarball automatically, so
99 # get it from elsewhere.
1010 url = "mirror://debian/pool/main/g/gpsbabel/gpsbabel_${version}.orig.tar.gz";
11− sha256 = "1s31xa36ivf836h89m1f3qiaz3c3znvqjdm0bnh8vr2jjlrz9jdi";
11+ sha256 = "0xf7wmy2m29g2lm8lqc74yf8rf7sxfl3cfwbk7dpf0yf42pb0b6w";
1212 };
1313
14− # FIXME: Would need libxml2 for one of the tests, but that in turns require
15− # network access for the XML schemas.
16− buildInputs = [ zlib expat which ];
14+ buildInputs = [ zlib qt5.base which ];
1715
1816 /* FIXME: Building the documentation, with "make doc", requires this:
1917
@@ -25,10 +23,14 @@ stdenv.mkDerivation {
2523 configureFlags = [ "--with-zlib=system" ];
2624
2725 doCheck = true;
26+ preCheck = ''
27+ patchShebangs testo
28+ substituteInPlace testo \
29+ --replace "-x /usr/bin/hexdump" ""
30+ '';
2831
29− meta = {
32+ meta = with stdenv.lib; {
3033 description = "Convert, upload and download data from GPS and Map programs";
31−
3234 longDescription = ''
3335 GPSBabel converts waypoints, tracks, and routes between popular
3436 GPS receivers and mapping programs. It also has powerful
@@ -47,12 +49,9 @@ stdenv.mkDerivation {
4749 process data that may (or may not be) placed on a map, such as
4850 waypoints, tracks, and routes.
4951 '';
50−
5152 homepage = http://www.gpsbabel.org/;
52−
53− license = stdenv.lib.licenses.gpl2Plus;
54−
55− maintainers = [ ];
56− platforms = stdenv.lib.platforms.gnu; # arbitrary choice
53+ license = licenses.gpl2Plus;
54+ maintainers = [ maintainers.rycee ];
55+ platforms = platforms.all;
5756 };
5857}