2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qttranslations, substituteAll }:
|
2016-06-25 07:03:03 +02:00
|
|
|
|
2019-07-29 21:39:25 +02:00
|
|
|
mkDerivation rec {
|
2019-05-30 13:00:25 +02:00
|
|
|
pname = "gpxsee";
|
2021-07-03 17:09:02 +02:00
|
|
|
version = "9.2";
|
2016-06-25 07:03:03 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tumic0";
|
|
|
|
repo = "GPXSee";
|
|
|
|
rev = version;
|
2021-07-03 17:09:02 +02:00
|
|
|
sha256 = "sha256-pU02Eaq6tB7X6EPOo8YAyryJRbSV3KebQv8VELxXaBw=";
|
2016-06-25 07:03:03 +02:00
|
|
|
};
|
|
|
|
|
2020-09-23 08:49:37 +02:00
|
|
|
patches = (substituteAll {
|
2020-06-01 10:45:46 +02:00
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
2020-09-23 08:49:37 +02:00
|
|
|
src = ./fix-qttranslations-path.diff;
|
|
|
|
inherit qttranslations;
|
|
|
|
});
|
2020-06-01 10:45:46 +02:00
|
|
|
|
2020-03-01 21:23:02 +01:00
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
2017-04-16 09:13:32 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
2020-04-26 13:53:44 +02:00
|
|
|
lrelease gpxsee.pro
|
2016-06-25 07:03:03 +02:00
|
|
|
'';
|
|
|
|
|
2020-03-01 21:23:02 +01:00
|
|
|
postInstall = with stdenv; lib.optionalString isDarwin ''
|
2020-01-29 11:07:56 +01:00
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv GPXSee.app $out/Applications
|
|
|
|
wrapQtApp $out/Applications/GPXSee.app/Contents/MacOS/GPXSee
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-05-30 13:00:25 +02:00
|
|
|
description = "GPS log file viewer and analyzer";
|
2018-01-28 15:54:37 +01:00
|
|
|
longDescription = ''
|
2019-05-30 13:00:25 +02:00
|
|
|
GPXSee is a Qt-based GPS log file viewer and analyzer that supports
|
|
|
|
all common GPS log file formats.
|
2018-01-28 15:54:37 +01:00
|
|
|
'';
|
2020-10-28 08:14:21 +01:00
|
|
|
homepage = "https://www.gpxsee.org/";
|
|
|
|
changelog = "https://build.opensuse.org/package/view_file/home:tumic:GPXSee/gpxsee/gpxsee.changes";
|
2020-12-22 23:29:59 +01:00
|
|
|
license = licenses.gpl3Only;
|
2019-09-03 20:11:22 +02:00
|
|
|
maintainers = with maintainers; [ womfoo sikmir ];
|
2021-05-31 15:34:10 +02:00
|
|
|
platforms = platforms.unix;
|
2016-06-25 07:03:03 +02:00
|
|
|
};
|
|
|
|
}
|