summary refs log tree commit diff
path: root/pkgs/applications/misc/viking/default.nix
blob: 6508b12e1de8f84478d8a0d226c44ccbe36a57fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{ fetchurl, stdenv, pkgconfig, intltool, gettext, gtk, expat, curl
, gpsd, bc, file, gnome_doc_utils, libexif, libxml2, libxslt, scrollkeeper
, docbook_xml_dtd_412 }:

let version = "1.3"; in
stdenv.mkDerivation {
  name = "viking-${version}";

  src = fetchurl {
    url = "mirror://sourceforge/viking/viking/${version}/viking-${version}.tar.gz";
    sha256 = "1psgy1myx9xn7zgpvqrpricsv041sz41mm82hj5i28k72fq47p2l";
  };

  buildInputs =
   [ pkgconfig intltool gettext gtk expat curl gpsd bc file gnome_doc_utils
     libexif libxml2 libxslt scrollkeeper docbook_xml_dtd_412
   ];

  configureFlags = [ "--disable-scrollkeeper" ];

  preBuild =
    '' sed -i help/Makefile \
           -e 's|--noout|--noout --nonet --path "${scrollkeeper}/share/xml/scrollkeeper/dtds"|g'
    '';

  doCheck = true;

  meta = {
    description = "Viking, a GPS data editor and analyzer";

    longDescription = ''
      Viking is a free/open source program to manage GPS data.  You
      can import and plot tracks and waypoints, show Openstreetmaps
      and/or Terraserver maps under it, download geocaches for an area
      on the map, make new tracks and waypoints, see real-time GPS
      position, etc.
    '';

    homepage = http://viking.sourceforge.net/;

    license = stdenv.lib.licenses.gpl2Plus;
  };
}