2021-05-07 23:18:14 +02:00
|
|
|
{ lib, stdenv, fetchurl, intltool, libxml2, pkg-config, gnome, libchamplain, gdl, shared-mime-info, desktop-file-utils, wrapGAppsHook }:
|
2017-09-25 23:42:00 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gpx-viewer";
|
2017-09-25 23:42:00 +02:00
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://launchpad.net/gpx-viewer/trunk/${version}/+download/${pname}-${version}.tar.gz";
|
2017-09-25 23:42:00 +02:00
|
|
|
sha256 = "956acfaf870ac436300cd9953dece630df7fd7dff8e4ae2577a6002884466f80";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = fetchurl {
|
|
|
|
url = "https://code.launchpad.net/~chkr/gpx-viewer/gtk3-bugfix/+merge/260766/+preview-diff/628965/+files/preview.diff";
|
|
|
|
sha256 = "1yl7jk7skkcx10nny5zdixswcymjd9s9c1zhm1i5y3aqhchvmfs7";
|
|
|
|
};
|
|
|
|
patchFlags = [ "-p0" ];
|
|
|
|
|
2019-07-31 15:14:44 +02:00
|
|
|
configureFlags = [ "--disable-database-updates" ];
|
|
|
|
|
2017-09-25 23:42:00 +02:00
|
|
|
nativeBuildInputs = [
|
2021-01-17 03:09:27 +01:00
|
|
|
intltool pkg-config
|
2017-09-25 23:42:00 +02:00
|
|
|
wrapGAppsHook # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
|
|
|
|
];
|
2021-05-07 23:18:14 +02:00
|
|
|
buildInputs = [ gdl libchamplain gnome.adwaita-icon-theme libxml2 ];
|
2017-09-25 23:42:00 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://blog.sarine.nl/tag/gpxviewer/";
|
2017-09-25 23:42:00 +02:00
|
|
|
description = "Simple tool to visualize tracks and waypoints stored in a gpx file";
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|