Files
nixpkgs/pkgs/by-name/gp/gpxsee/package.nix
2026-07-04 22:07:12 +00:00

77 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
nix-update-script,
qt6,
wrapGAppsHook3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gpxsee";
version = "16.11";
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
tag = finalAttrs.version;
hash = "sha256-Kfwm72PBLjnOIF/G/XMyOa5BmoYzV2Bb4aDQiDd51PI=";
};
buildInputs = [
qt6.qtbase
qt6.qtmultimedia
qt6.qtpositioning
qt6.qtserialport
qt6.qtsvg
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
qt6.qt5compat
];
nativeBuildInputs = [
qt6.qmake
qt6.qttools
qt6.wrapQtAppsHook
wrapGAppsHook3
];
dontWrapGApps = true;
preFixup = ''
qtWrapperArgs+=(''${gappsWrapperArgs[@]})
'';
preConfigure = ''
lrelease lang/*.ts
'';
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir -p $out/Applications
mv GPXSee.app $out/Applications
mkdir -p $out/bin
ln -s $out/Applications/GPXSee.app/Contents/MacOS/GPXSee $out/bin/gpxsee
'';
passthru = {
updateScript = nix-update-script { };
};
meta = {
changelog = "https://github.com/tumic0/GPXSee/releases/tag/${finalAttrs.src.tag}";
description = "GPS log file viewer and analyzer";
mainProgram = "gpxsee";
homepage = "https://www.gpxsee.org/";
license = lib.licenses.gpl3Only;
longDescription = ''
GPXSee is a Qt-based GPS log file viewer and analyzer that supports
all common GPS log file formats.
'';
maintainers = with lib.maintainers; [
womfoo
sikmir
];
platforms = lib.platforms.unix;
};
})