From 8810f54dea049bc1ba66883a30082c26ac6e0000 Mon Sep 17 00:00:00 2001 From: Nikolay Korotkiy Date: Mon, 17 Jun 2019 09:39:56 +0300 Subject: [PATCH] gpxsee: 7.8 -> 7.9 --- pkgs/applications/misc/gpxsee/default.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/misc/gpxsee/default.nix b/pkgs/applications/misc/gpxsee/default.nix index 75800134de07..8c9833ae40d1 100644 --- a/pkgs/applications/misc/gpxsee/default.nix +++ b/pkgs/applications/misc/gpxsee/default.nix @@ -1,26 +1,30 @@ -{ stdenv, fetchFromGitHub, qmake, qttools }: +{ stdenv, fetchFromGitHub, qmake, qttools, makeWrapper }: stdenv.mkDerivation rec { pname = "gpxsee"; - version = "7.8"; + version = "7.9"; src = fetchFromGitHub { owner = "tumic0"; repo = "GPXSee"; rev = version; - sha256 = "1ymqz4wrl9ghkyyqi2vrnlyvz3fc84s3p8a1dkiqlvyvj360ck9j"; + sha256 = "029l5dhc9nnxiw7p0s4gyfkcqw709z7lz96aq8krs75mfk4fv07k"; }; - nativeBuildInputs = [ qmake ]; + nativeBuildInputs = [ qmake makeWrapper ]; buildInputs = [ qttools ]; preConfigure = '' - substituteInPlace src/common/programpaths.cpp --replace /usr/share/ $out/share/ lrelease lang/*.ts ''; enableParallelBuilding = true; + postInstall = '' + wrapProgram $out/bin/gpxsee \ + --prefix XDG_DATA_DIRS ":" $out/share + ''; + meta = with stdenv.lib; { homepage = https://www.gpxsee.org/; description = "GPS log file viewer and analyzer";