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-02-22 21:28:39 +00:00
|
|
|
version = "8.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tumic0";
|
|
|
|
repo = "GPXSee";
|
|
|
|
rev = version;
|
2021-02-22 21:28:39 +00:00
|
|
|
sha256 = "sha256-RAqTwi65YskQhsjlHxQqy50R5s8z2yriWLkrg5J/eTc=";
|
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 ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
|
|
|
};
|
|
|
|
}
|