2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qttranslations, substituteAll }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "gpxsee";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "9.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tumic0";
|
|
|
|
repo = "GPXSee";
|
|
|
|
rev = version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-Yj8lR8zgIV+gshea7rzLbMF84n1nyN3DytiIkr3B274=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-07 09:15:18 +00:00
|
|
|
patches = (substituteAll {
|
2020-06-02 18:00:15 +00:00
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
2020-10-07 09:15:18 +00:00
|
|
|
src = ./fix-qttranslations-path.diff;
|
|
|
|
inherit qttranslations;
|
|
|
|
});
|
2020-06-02 18:00:15 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2020-05-03 17:38:23 +00:00
|
|
|
lrelease gpxsee.pro
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = with stdenv; lib.optionalString isDarwin ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv GPXSee.app $out/Applications
|
|
|
|
wrapQtApp $out/Applications/GPXSee.app/Contents/MacOS/GPXSee
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "GPS log file viewer and analyzer";
|
|
|
|
longDescription = ''
|
|
|
|
GPXSee is a Qt-based GPS log file viewer and analyzer that supports
|
|
|
|
all common GPS log file formats.
|
|
|
|
'';
|
2020-11-06 00:33:48 +00:00
|
|
|
homepage = "https://www.gpxsee.org/";
|
|
|
|
changelog = "https://build.opensuse.org/package/view_file/home:tumic:GPXSee/gpxsee/gpxsee.changes";
|
2020-12-29 15:07:52 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ womfoo sikmir ];
|
2021-06-01 10:57:12 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|