summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaka Hudoklin <offlinehacker@users.noreply.github.com>2017-09-26 00:57:51 +0200
committerGitHub <noreply@github.com>2017-09-26 00:57:51 +0200
commit26d51b479753ea1429c466ab62bd255456659ce9 (patch)
tree0cb6a049a279df4e50d4342663ace73b3a5b017d
parent213de50abb3e7a74d3ef9a3d2bf67a07699505b6 (diff)
parentfeb397d55f28c2b82dd2814104a3df25aa4d37ae (diff)
downloadnixpkgs-26d51b479753ea1429c466ab62bd255456659ce9.tar
nixpkgs-26d51b479753ea1429c466ab62bd255456659ce9.tar.gz
nixpkgs-26d51b479753ea1429c466ab62bd255456659ce9.tar.bz2
nixpkgs-26d51b479753ea1429c466ab62bd255456659ce9.tar.lz
nixpkgs-26d51b479753ea1429c466ab62bd255456659ce9.tar.xz
nixpkgs-26d51b479753ea1429c466ab62bd255456659ce9.tar.zst
nixpkgs-26d51b479753ea1429c466ab62bd255456659ce9.zip
Merge pull request #29789 from dotlambda/gpx-viewer
gpx-viewer: init at 0.4.0
-rw-r--r--pkgs/applications/misc/gpx-viewer/default.nix33
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 35 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 00000000000..a7485c4ee68
--- /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 ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 089234dd578..9beeec90faf 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -14387,6 +14387,8 @@ with pkgs;
 
   gqrx = qt5.callPackage ../applications/misc/gqrx { };
 
+  gpx-viewer = callPackage ../applications/misc/gpx-viewer { };
+
   grass = callPackage ../applications/gis/grass { };
 
   grepm = callPackage ../applications/search/grepm { };