3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/viking/default.nix

72 lines
2.3 KiB
Nix
Raw Normal View History

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
}:
2015-09-06 20:43:27 +01:00
stdenv.mkDerivation rec {
pname = "viking";
2021-04-05 18:55:31 +01:00
version = "1.9";
src = fetchurl {
2021-04-05 18:55:31 +01:00
url = "mirror://sourceforge/viking/viking-${version}.tar.bz2";
sha256 = "0fybpy6k0vmjp231h5ckysl3c0rcnh2afznijwq6y78j4hywyjpy";
};
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;
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" ];
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
'';
meta = with lib; {
2015-09-06 20:43:27 +01:00
description = "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 = "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 ];
platforms = with platforms; linux;
};
}