2015-09-06 19:43:27 +00:00
|
|
|
{ fetchurl, stdenv, makeWrapper, pkgconfig, intltool, gettext, gtk, expat, curl
|
2012-07-01 15:32:03 +00:00
|
|
|
, gpsd, bc, file, gnome_doc_utils, libexif, libxml2, libxslt, scrollkeeper
|
2015-09-06 19:43:27 +00:00
|
|
|
, docbook_xml_dtd_412, gexiv2, sqlite, gpsbabel }:
|
2009-05-30 20:52:10 +00:00
|
|
|
|
2015-09-06 19:43:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-07-01 15:32:03 +00:00
|
|
|
name = "viking-${version}";
|
2015-11-29 18:28:55 +00:00
|
|
|
version = "1.6.1";
|
2009-05-30 20:52:10 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-06 19:43:27 +00:00
|
|
|
url = "mirror://sourceforge/viking/viking/viking-${version}.tar.bz2";
|
2015-11-29 18:28:55 +00:00
|
|
|
sha256 = "0ic445f85z1sdx1ifgcijn379m7amr5mcjpg10343972sam4rz1s";
|
2009-05-30 20:52:10 +00:00
|
|
|
};
|
|
|
|
|
2015-09-06 19:43:27 +00:00
|
|
|
buildInputs = [ makeWrapper pkgconfig intltool gettext gtk expat curl gpsd bc file gnome_doc_utils
|
|
|
|
libexif libxml2 libxslt scrollkeeper docbook_xml_dtd_412 gexiv2 sqlite
|
|
|
|
];
|
2009-05-30 21:32:01 +00:00
|
|
|
|
2015-09-06 19:43:27 +00:00
|
|
|
configureFlags = [ "--disable-scrollkeeper --disable-mapnik" ];
|
2012-07-01 15:32:03 +00:00
|
|
|
|
2015-09-06 19:43:27 +00:00
|
|
|
preBuild = ''
|
|
|
|
sed -i help/Makefile \
|
|
|
|
-e 's|--noout|--noout --nonet --path "${scrollkeeper}/share/xml/scrollkeeper/dtds"|g'
|
|
|
|
sed -i help/Makefile -e 's|--postvalid||g'
|
|
|
|
'';
|
2009-05-30 20:52:10 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2015-09-06 19:43:27 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/viking \
|
|
|
|
--prefix PATH : "${gpsbabel}/bin"
|
|
|
|
'';
|
2009-05-30 20:52:10 +00:00
|
|
|
|
2015-09-06 19:43:27 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GPS data editor and analyzer";
|
2009-05-30 20:52:10 +00:00
|
|
|
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/;
|
2015-09-06 19:43:27 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2009-05-30 20:52:10 +00:00
|
|
|
};
|
|
|
|
}
|