2020-06-01 08:45:46 +00:00
|
|
|
{ stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qttranslations }:
|
2016-06-25 05:03:03 +00:00
|
|
|
|
2019-07-29 19:39:25 +00:00
|
|
|
mkDerivation rec {
|
2019-05-30 11:00:25 +00:00
|
|
|
pname = "gpxsee";
|
2020-07-01 08:35:34 +00:00
|
|
|
version = "7.31";
|
2016-06-25 05:03:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tumic0";
|
|
|
|
repo = "GPXSee";
|
|
|
|
rev = version;
|
2020-07-01 08:35:34 +00:00
|
|
|
sha256 = "0y60h66p8ydkinxk9x4sp4cm6gq66nc9jcavy135vmycsiq9gphn";
|
2016-06-25 05:03:03 +00:00
|
|
|
};
|
|
|
|
|
2020-06-01 08:45:46 +00:00
|
|
|
patches = [
|
|
|
|
# See https://github.com/NixOS/nixpkgs/issues/86054
|
|
|
|
./fix-qttranslations-path.diff
|
|
|
|
];
|
|
|
|
|
2020-03-01 20:23:02 +00:00
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
2017-04-16 07:13:32 +00:00
|
|
|
|
2020-06-01 08:45:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/GUI/app.cpp \
|
|
|
|
--subst-var-by qttranslations ${qttranslations}
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
2020-03-01 20:23:02 +00:00
|
|
|
postInstall = with stdenv; lib.optionalString isDarwin ''
|
2020-01-29 10:07:56 +00:00
|
|
|
mkdir -p $out/Applications
|
|
|
|
mv GPXSee.app $out/Applications
|
|
|
|
wrapQtApp $out/Applications/GPXSee.app/Contents/MacOS/GPXSee
|
|
|
|
'';
|
|
|
|
|
2018-09-02 10:17:22 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-03-01 20:23:02 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://www.gpxsee.org/";
|
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
|
|
|
'';
|
2016-06-25 05:03:03 +00:00
|
|
|
license = licenses.gpl3;
|
2019-09-03 18:11:22 +00:00
|
|
|
maintainers = with maintainers; [ womfoo sikmir ];
|
2020-01-29 10:07:56 +00:00
|
|
|
platforms = with platforms; linux ++ darwin;
|
2016-06-25 05:03:03 +00:00
|
|
|
};
|
|
|
|
}
|