lol
1{ fetchurl, stdenv, pkgconfig, gettext, gtk2, gconf
2, curl, libexif, sqlite, libxml2 }:
3
4stdenv.mkDerivation rec {
5 name = "tangogps-0.99.2";
6
7 src = fetchurl {
8 url = "http://www.tangogps.org/downloads/${name}.tar.gz";
9 sha256 = "15q2kkrv4mfsivfdzjgpxr7s2amw7d501q2ayjl3ff4vmvfn5516";
10 };
11
12 nativeBuildInputs = [ pkgconfig ];
13 buildInputs = [ gettext gtk2 gconf curl libexif sqlite libxml2 ];
14
15 # bogus includes fail with newer library version
16 postPatch = ''
17 sed -i -e 's,#include <glib/.*>,#include <glib.h>,g' src/*.c
18 sed -i -e 's,#include <curl/.*>,#include <curl/curl.h>,g' src/*.c src/*.h
19 '';
20
21 meta = {
22 description = "User friendly map and GPS user interface";
23
24 longDescription = ''
25 tangoGPS is an easy to use, fast and lightweight mapping
26 application for use with or without GPS.
27
28 It runs on any Linux platform from the desktop over eeePC down
29 to phones like the Openmoko Neo.
30
31 By default tangoGPS uses map data from the OpenStreetMap
32 project. Additionally a variety of other repositories can be
33 easily added.
34
35 The maps are automagically downloaded and cached for offline use
36 while you drag or zoom the map. Furthermore you can
37 conveniently pre-cache areas with tangoGPS.
38 '';
39
40 #homepage = http://www.tangogps.org/; # no longer valid, I couldn't find any other
41
42 license = stdenv.lib.licenses.gpl2Plus;
43 platforms = stdenv.lib.platforms.unix;
44 };
45}