2016-09-11 23:24:51 +02:00
|
|
|
{ fetchurl, stdenv, makeWrapper, pkgconfig, intltool, gettext, gtk2, expat, curl
|
2018-02-25 03:23:58 +01:00
|
|
|
, gpsd, bc, file, gnome-doc-utils, libexif, libxml2, libxslt, scrollkeeper
|
2019-06-27 21:46:11 +02:00
|
|
|
, docbook_xml_dtd_412, gexiv2, sqlite, gpsbabel, expect, hicolor-icon-theme
|
2019-09-12 17:58:38 +02:00
|
|
|
, geoclue2, liboauth, nettle }:
|
2009-05-30 22:52:10 +02:00
|
|
|
|
2015-09-06 21:43:27 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "viking";
|
2019-06-27 21:46:11 +02:00
|
|
|
version = "1.7";
|
2009-05-30 22:52:10 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-06 21:43:27 +02:00
|
|
|
url = "mirror://sourceforge/viking/viking/viking-${version}.tar.bz2";
|
2019-06-27 21:46:11 +02:00
|
|
|
sha256 = "092q2dv0rcz12nh2js1z1ralib1553dmzy9pdrvz9nv2vf61wybw";
|
2009-05-30 22:52:10 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2018-02-25 03:23:58 +01:00
|
|
|
buildInputs = [ makeWrapper intltool gettext gtk2 expat curl gpsd bc file gnome-doc-utils
|
2018-07-16 20:51:05 +02:00
|
|
|
libexif libxml2 libxslt scrollkeeper docbook_xml_dtd_412 gexiv2 sqlite hicolor-icon-theme
|
2019-09-12 17:58:38 +02:00
|
|
|
geoclue2 liboauth nettle
|
2015-09-06 21:43:27 +02:00
|
|
|
];
|
2009-05-30 23:32:01 +02:00
|
|
|
|
2015-09-06 21:43:27 +02:00
|
|
|
configureFlags = [ "--disable-scrollkeeper --disable-mapnik" ];
|
2012-07-01 17:32:03 +02:00
|
|
|
|
2015-09-06 21:43:27 +02: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 22:52:10 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2015-09-06 21:43:27 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/viking \
|
2016-01-03 15:39:52 +01:00
|
|
|
--prefix PATH : "${gpsbabel}/bin" \
|
|
|
|
--prefix PATH : "${expect}/bin"
|
2015-09-06 21:43:27 +02:00
|
|
|
'';
|
2009-05-30 22:52:10 +02:00
|
|
|
|
2015-09-06 21:43:27 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GPS data editor and analyzer";
|
2009-05-30 22:52:10 +02: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.
|
|
|
|
'';
|
2017-11-11 17:36:33 +01:00
|
|
|
homepage = https://sourceforge.net/projects/viking/;
|
2015-09-06 21:43:27 +02:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ pSub ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = with platforms; linux;
|
2009-05-30 22:52:10 +02:00
|
|
|
};
|
|
|
|
}
|