From 71d1aa7d84b7c665d7687d759cf956b6d18b8233 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 29 May 2009 23:30:10 +0000 Subject: [PATCH] Add GPSBabel. svn path=/nixpkgs/trunk/; revision=15801 --- pkgs/applications/misc/gpsbabel/default.nix | 48 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++ 2 files changed, 52 insertions(+) create mode 100644 pkgs/applications/misc/gpsbabel/default.nix diff --git a/pkgs/applications/misc/gpsbabel/default.nix b/pkgs/applications/misc/gpsbabel/default.nix new file mode 100644 index 000000000000..a8ccb1c0fef0 --- /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 fe1197343206..be191a6662bb 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;