nixpkgs/pkgs/applications/misc/gpxsee/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

76 lines
1.6 KiB
Nix
Raw Normal View History

2022-11-16 03:44:01 +00:00
{ lib
, stdenv
, fetchFromGitHub
, qmake
, nix-update-script
, qtbase
, qttools
, qtlocation ? null # qt5 only
, qtpositioning ? null # qt6 only
2023-03-11 09:20:47 +00:00
, qtserialport
2022-11-16 03:44:01 +00:00
, 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
2023-09-02 20:05:15 +00:00
stdenv.mkDerivation (finalAttrs: {
2019-05-30 11:00:25 +00:00
pname = "gpxsee";
2024-01-07 04:37:12 +00:00
version = "13.14";
2016-06-25 05:03:03 +00:00
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
2023-09-02 20:05:15 +00:00
rev = finalAttrs.version;
2024-01-07 04:37:12 +00:00
hash = "sha256-9Vq5CfZi58hqTKnIZSR5iQefXzNq0BErtZ8NoxLchxo=";
2016-06-25 05:03:03 +00:00
};
2023-09-02 20:05:15 +00:00
buildInputs = [
qtserialport
] ++ (if isQt6 then [
2022-11-16 03:44:01 +00:00
qtbase
qtpositioning
qtsvg
qt5compat
] else [
qtlocation
]);
2021-12-08 08:19:29 +00:00
2023-09-02 20:05:15 +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
2023-03-11 09:20:47 +00:00
mkdir -p $out/bin
ln -s $out/Applications/GPXSee.app/Contents/MacOS/GPXSee $out/bin/gpxsee
2020-01-29 10:07:56 +00:00
'';
2022-09-05 08:03:13 +00:00
passthru = {
updateScript = nix-update-script { };
2022-09-05 08:03:13 +00:00
};
2023-09-02 20:05:15 +00:00
meta = {
broken = isQt6 && stdenv.isDarwin;
changelog = "https://build.opensuse.org/package/view_file/home:tumic:GPXSee/gpxsee/gpxsee.changes";
2019-05-30 11:00:25 +00:00
description = "GPS log file viewer and analyzer";
2023-09-02 20:05:15 +00:00
homepage = "https://www.gpxsee.org/";
license = lib.licenses.gpl3Only;
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
'';
2023-09-02 20:05:15 +00:00
maintainers = with lib.maintainers; [ womfoo sikmir ];
platforms = lib.platforms.unix;
2016-06-25 05:03:03 +00:00
};
2023-09-02 20:05:15 +00:00
})