2022-11-16 03:44:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qmake
|
|
|
|
, nix-update-script
|
|
|
|
, substituteAll
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qttranslations
|
|
|
|
, qtlocation ? null # qt5 only
|
|
|
|
, qtpositioning ? null # qt6 only
|
|
|
|
, qtpbfimageplugin
|
|
|
|
, qtsvg
|
|
|
|
, qt5compat ? null # qt6 only
|
|
|
|
, wrapQtAppsHook
|
2022-09-05 08:03:13 +00:00
|
|
|
}:
|
2016-06-25 05:03:03 +00:00
|
|
|
|
2022-11-16 03:44:01 +00:00
|
|
|
let
|
|
|
|
isQt6 = lib.versions.major qtbase.version == "6";
|
|
|
|
|
|
|
|
in
|
2021-12-08 08:19:29 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-05-30 11:00:25 +00:00
|
|
|
pname = "gpxsee";
|
2022-12-22 11:33:07 +00:00
|
|
|
version = "11.11";
|
2016-06-25 05:03:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tumic0";
|
|
|
|
repo = "GPXSee";
|
|
|
|
rev = version;
|
2022-12-22 11:33:07 +00:00
|
|
|
hash = "sha256-5kT1vcbCc0Fa3ylrcQetth50IQu57upiWRRpub93jlE=";
|
2016-06-25 05:03:03 +00:00
|
|
|
};
|
|
|
|
|
2020-09-23 06:49:37 +00:00
|
|
|
patches = (substituteAll {
|
2020-06-01 08:45:46 +00:00
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
2020-09-23 06:49:37 +00:00
|
|
|
src = ./fix-qttranslations-path.diff;
|
|
|
|
inherit qttranslations;
|
|
|
|
});
|
2020-06-01 08:45:46 +00:00
|
|
|
|
2022-11-16 03:44:01 +00:00
|
|
|
buildInputs = [ qtpbfimageplugin ]
|
|
|
|
++ (if isQt6 then [
|
|
|
|
qtbase
|
|
|
|
qtpositioning
|
|
|
|
qtsvg
|
|
|
|
qt5compat
|
|
|
|
] else [
|
|
|
|
qtlocation
|
|
|
|
]);
|
2021-12-08 08:19:29 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake qttools wrapQtAppsHook ];
|
2017-04-16 07:13:32 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
2020-04-26 11:53:44 +00:00
|
|
|
lrelease gpxsee.pro
|
2016-06-25 05:03:03 +00:00
|
|
|
'';
|
|
|
|
|
2021-11-17 15:49:22 +00:00
|
|
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
2020-01-29 10:07:56 +00:00
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv GPXSee.app $out/Applications
|
|
|
|
'';
|
|
|
|
|
2022-09-05 08:03:13 +00:00
|
|
|
passthru = {
|
2022-12-25 22:11:14 +00:00
|
|
|
updateScript = nix-update-script { };
|
2022-09-05 08:03:13 +00:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-05-30 11:00:25 +00:00
|
|
|
description = "GPS log file viewer and analyzer";
|
2018-01-28 14:54:37 +00:00
|
|
|
longDescription = ''
|
2019-05-30 11:00:25 +00:00
|
|
|
GPXSee is a Qt-based GPS log file viewer and analyzer that supports
|
|
|
|
all common GPS log file formats.
|
2018-01-28 14:54:37 +00:00
|
|
|
'';
|
2020-10-28 07:14:21 +00:00
|
|
|
homepage = "https://www.gpxsee.org/";
|
|
|
|
changelog = "https://build.opensuse.org/package/view_file/home:tumic:GPXSee/gpxsee/gpxsee.changes";
|
2020-12-22 22:29:59 +00:00
|
|
|
license = licenses.gpl3Only;
|
2019-09-03 18:11:22 +00:00
|
|
|
maintainers = with maintainers; [ womfoo sikmir ];
|
2021-05-31 13:34:10 +00:00
|
|
|
platforms = platforms.unix;
|
2022-11-16 03:44:01 +00:00
|
|
|
broken = isQt6 && stdenv.isDarwin;
|
2016-06-25 05:03:03 +00:00
|
|
|
};
|
|
|
|
}
|