summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/applications/misc/gpsbabel/default.nix48
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/misc/gpsbabel/default.nix b/pkgs/applications/misc/gpsbabel/default.nix
new file mode 100644
index 00000000000..a8ccb1c0fef
--- /dev/null
+++ b/pkgs/applications/misc/gpsbabel/default.nix
@@ -0,0 +1,48 @@
+{ fetchurl, stdenv, zlib, expat }:
+
+stdenv.mkDerivation rec {
+  name = "gpsbabel-1.3.6";
+
+  src = fetchurl {
+    url = "http://www.gpsbabel.org/plan9.php?dl=${name}.tar.gz";
+    name = "${name}.tar.gz";
+    sha256 = "1dm9lpcdsj0vz699zz932xc1vphvap627wl0qp61izlkzh25vg88";
+  };
+
+  buildInputs = [ zlib expat ];
+
+  /* FIXME: Building the documentation, with "make doc", requires this:
+
+      [ libxml2 libxslt perl docbook_xml_dtd_412 docbook_xsl fop ]
+
+    But FOP isn't packaged yet.  */
+
+  configureFlags = "--with-zlib=system";
+
+  meta = {
+    description = "GPSBabel, a tool to convert, upload and download data from GPS and Map programs";
+
+    longDescription = ''
+      GPSBabel converts waypoints, tracks, and routes between popular
+      GPS receivers and mapping programs.  It also has powerful
+      manipulation tools for such data.
+
+      By flattening the Tower of Babel that the authors of various
+      programs for manipulating GPS data have imposed upon us, it
+      returns to us the ability to freely move our own waypoint data
+      between the programs and hardware we choose to use.
+
+      It contains extensive data manipulation abilities making it a
+      convenient for server-side processing or as the backend for
+      other tools.
+
+      It does not convert, transfer, send, or manipulate maps.  We
+      process data that may (or may not be) placed on a map, such as
+      waypoints, tracks, and routes.
+    '';
+
+    homepage = http://www.gpsbabel.org/;
+
+    license = "GPLv2+";
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index fe119734320..be191a6662b 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -762,6 +762,10 @@ let
       inherit fetchurl stdenv;
     });
 
+  gpsbabel = import ../applications/misc/gpsbabel {
+    inherit fetchurl stdenv zlib expat;
+  };
+
   graphviz = import ../tools/graphics/graphviz {
     inherit fetchurl stdenv pkgconfig libpng libjpeg expat x11 yacc
       libtool fontconfig gd;