2021-04-05 18:55:31 +01:00
|
|
|
{ lib, stdenv, fetchurl
|
|
|
|
, docbook_xml_dtd_45, docbook_xsl, intltool, itstool, libxslt, pkg-config, wrapGAppsHook, yelp-tools
|
|
|
|
, curl, gdk-pixbuf, gtk3, json-glib, libxml2
|
|
|
|
, gpsbabel
|
|
|
|
, withGeoClue ? true, geoclue2
|
|
|
|
, withGeoTag ? true, gexiv2
|
|
|
|
, withMagic ? true, file
|
2020-02-03 22:36:02 +00:00
|
|
|
, withMapnik ? false, mapnik
|
|
|
|
, withMBTiles ? true, sqlite
|
|
|
|
, withMd5Hash ? true, nettle
|
2021-04-05 18:55:31 +01:00
|
|
|
, withOAuth ? true, liboauth
|
|
|
|
, withRealtimeGPSTracking ? true, gpsd
|
|
|
|
}:
|
2009-05-30 21:52:10 +01:00
|
|
|
|
2015-09-06 20:43:27 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "viking";
|
2021-04-05 18:55:31 +01:00
|
|
|
version = "1.9";
|
2009-05-30 21:52:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-04-05 18:55:31 +01:00
|
|
|
url = "mirror://sourceforge/viking/viking-${version}.tar.bz2";
|
|
|
|
sha256 = "0fybpy6k0vmjp231h5ckysl3c0rcnh2afznijwq6y78j4hywyjpy";
|
2009-05-30 21:52:10 +01:00
|
|
|
};
|
|
|
|
|
2021-04-05 18:55:31 +01:00
|
|
|
nativeBuildInputs = [ docbook_xml_dtd_45 docbook_xsl intltool itstool libxslt pkg-config wrapGAppsHook yelp-tools ];
|
2020-02-03 22:36:02 +00:00
|
|
|
|
2021-04-05 18:55:31 +01:00
|
|
|
buildInputs = [ curl gdk-pixbuf gtk3 json-glib libxml2 ]
|
2021-01-15 05:42:41 +00:00
|
|
|
++ lib.optional withGeoClue geoclue2
|
2021-04-05 18:55:31 +01:00
|
|
|
++ lib.optional withGeoTag gexiv2
|
|
|
|
++ lib.optional withMagic file
|
|
|
|
++ lib.optional withMapnik mapnik
|
|
|
|
++ lib.optional withMBTiles sqlite
|
2021-01-15 05:42:41 +00:00
|
|
|
++ lib.optional withMd5Hash nettle
|
2021-04-05 18:55:31 +01:00
|
|
|
++ lib.optional withOAuth liboauth
|
|
|
|
++ lib.optional withRealtimeGPSTracking gpsd;
|
2009-05-30 22:32:01 +01:00
|
|
|
|
2020-02-03 22:36:02 +00:00
|
|
|
configureFlags = [
|
2021-01-15 05:42:41 +00:00
|
|
|
(lib.enableFeature withGeoClue "geoclue")
|
2021-04-05 18:55:31 +01:00
|
|
|
(lib.enableFeature withGeoTag "geotag")
|
|
|
|
(lib.enableFeature withMagic "magic")
|
|
|
|
(lib.enableFeature withMapnik "mapnik")
|
2021-01-15 05:42:41 +00:00
|
|
|
(lib.enableFeature withMBTiles "mbtiles")
|
2021-04-05 18:55:31 +01:00
|
|
|
(lib.enableFeature withMd5Hash "nettle")
|
|
|
|
(lib.enableFeature withOAuth "oauth")
|
|
|
|
(lib.enableFeature withRealtimeGPSTracking "realtime-gps-tracking")
|
2020-02-03 22:36:02 +00:00
|
|
|
];
|
2012-07-01 16:32:03 +01:00
|
|
|
|
2021-04-05 18:55:31 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2009-05-30 21:52:10 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-04-05 18:55:31 +01:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ gpsbabel ]}
|
|
|
|
)
|
2015-09-06 20:43:27 +01:00
|
|
|
'';
|
2009-05-30 21:52:10 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-09-06 20:43:27 +01:00
|
|
|
description = "GPS data editor and analyzer";
|
2009-05-30 21:52:10 +01: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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/viking/";
|
2015-09-06 20:43:27 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2020-02-03 22:36:02 +00:00
|
|
|
maintainers = with maintainers; [ pSub sikmir ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = with platforms; linux;
|
2009-05-30 21:52:10 +01:00
|
|
|
};
|
|
|
|
}
|