35 withRealtimeGPSTracking ? (!stdenv.hostPlatform.isDarwin),
39 stdenv.mkDerivation rec {
44 url = "mirror://sourceforge/viking/viking-${version}.tar.bz2";
45 sha256 = "sha256-lFXIlfmLwT3iS9ayNM0PHV7NwbBotMvG62ZE9hJuRaw=";
49 # Fix check_md5_hash.sh on macOS
51 url = "https://github.com/viking-gps/viking/pull/184/commits/b0e110a3cfefea0f1874669525eb3a220dd29f9f.patch";
52 hash = "sha256-HdkcZMV570SXOQMIZZAti2HT0gIdF/EwQCVXBaOwpqs=";
65 ] ++ lib.optional stdenv.hostPlatform.isDarwin desktopToDarwinBundle;
75 ++ lib.optional withGeoClue geoclue2
76 ++ lib.optional withGeoTag gexiv2
77 ++ lib.optional withMagic file
78 ++ lib.optional withMapnik mapnik
79 ++ lib.optional withMBTiles sqlite
80 ++ lib.optional withMd5Hash nettle
81 ++ lib.optional withOAuth liboauth
82 ++ lib.optional withRealtimeGPSTracking gpsd;
85 (lib.enableFeature withGeoClue "geoclue")
86 (lib.enableFeature withGeoTag "geotag")
87 (lib.enableFeature withMagic "magic")
88 (lib.enableFeature withMapnik "mapnik")
89 (lib.enableFeature withMBTiles "mbtiles")
90 (lib.enableFeature withMd5Hash "nettle")
91 (lib.enableFeature withOAuth "oauth")
92 (lib.enableFeature withRealtimeGPSTracking "realtime-gps-tracking")
95 hardeningDisable = [ "format" ];
101 --prefix PATH : ${lib.makeBinPath [ gpsbabel ]}
106 description = "GPS data editor and analyzer";
107 mainProgram = "viking";
109 Viking is a free/open source program to manage GPS data. You
110 can import and plot tracks and waypoints, show Openstreetmaps
111 and/or Terraserver maps under it, download geocaches for an area
112 on the map, make new tracks and waypoints, see real-time GPS
115 homepage = "https://sourceforge.net/projects/viking/";
116 license = licenses.gpl2Plus;
117 maintainers = with maintainers; [
121 platforms = with platforms; unix;