mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 07:34:36 +00:00
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qttranslations }:
|
|
|
|
mkDerivation rec {
|
|
pname = "gpxsee";
|
|
version = "7.30";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tumic0";
|
|
repo = "GPXSee";
|
|
rev = version;
|
|
sha256 = "09gajwqc30r9a2sn972qdx3gx0gki9n0zafq986hn6zsr3z43mfs";
|
|
};
|
|
|
|
patches = [
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
|
./fix-qttranslations-path.diff
|
|
];
|
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/GUI/app.cpp \
|
|
--subst-var-by qttranslations ${qttranslations}
|
|
'';
|
|
|
|
preConfigure = ''
|
|
lrelease gpxsee.pro
|
|
'';
|
|
|
|
postInstall = with stdenv; lib.optionalString isDarwin ''
|
|
mkdir -p $out/Applications
|
|
mv GPXSee.app $out/Applications
|
|
wrapQtApp $out/Applications/GPXSee.app/Contents/MacOS/GPXSee
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://www.gpxsee.org/";
|
|
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.
|
|
'';
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ womfoo sikmir ];
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
}
|