summary refs log tree commit diff
path: root/pkgs/applications/misc/gpx-viewer
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2017-09-25 23:42:00 +0200
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2017-09-25 23:42:00 +0200
commitfeb397d55f28c2b82dd2814104a3df25aa4d37ae (patch)
treed9c555c5970695b513231a67db7e6b7124a0d06f /pkgs/applications/misc/gpx-viewer
parentcee657f9a338cb9fa7505fd02fb69e46449da16d (diff)
downloadnixlib-feb397d55f28c2b82dd2814104a3df25aa4d37ae.tar
nixlib-feb397d55f28c2b82dd2814104a3df25aa4d37ae.tar.gz
nixlib-feb397d55f28c2b82dd2814104a3df25aa4d37ae.tar.bz2
nixlib-feb397d55f28c2b82dd2814104a3df25aa4d37ae.tar.lz
nixlib-feb397d55f28c2b82dd2814104a3df25aa4d37ae.tar.xz
nixlib-feb397d55f28c2b82dd2814104a3df25aa4d37ae.tar.zst
nixlib-feb397d55f28c2b82dd2814104a3df25aa4d37ae.zip
gpx-viewer: init at 0.4.0
Diffstat (limited to 'pkgs/applications/misc/gpx-viewer')
-rw-r--r--pkgs/applications/misc/gpx-viewer/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/misc/gpx-viewer/default.nix b/pkgs/applications/misc/gpx-viewer/default.nix
new file mode 100644
index 000000000000..a7485c4ee681
--- /dev/null
+++ b/pkgs/applications/misc/gpx-viewer/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, fetchurl, intltool, pkgconfig, gnome3, shared_mime_info, desktop_file_utils, wrapGAppsHook }:
+
+stdenv.mkDerivation rec {
+  name = "gpx-viewer-${version}";
+  version = "0.4.0";
+
+  src = fetchurl {
+    url = "https://launchpad.net/gpx-viewer/trunk/${version}/+download/${name}.tar.gz";
+    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" ];
+
+  nativeBuildInputs = [
+    intltool pkgconfig
+    shared_mime_info # For update-mime-database
+    desktop_file_utils # For update-desktop-database
+    wrapGAppsHook # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
+  ];
+  buildInputs = with gnome3; [ gdl libchamplain defaultIconTheme ];
+
+  meta = with stdenv.lib; {
+    homepage = https://blog.sarine.nl/tag/gpxviewer/;
+    description = "Simple tool to visualize tracks and waypoints stored in a gpx file";
+    platforms = with platforms; linux;
+    license = licenses.gpl2Plus;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}