2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, qmake, qttools }:
|
2016-06-25 07:03:03 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gpxsee-${version}";
|
2018-01-28 15:54:37 +01:00
|
|
|
version = "4.19";
|
2016-06-25 07:03:03 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tumic0";
|
|
|
|
repo = "GPXSee";
|
|
|
|
rev = version;
|
2018-01-28 15:54:37 +01:00
|
|
|
sha256 = "1xjf2aawf633c1ydhpcsjhdlfkjkfsjbcgjd737xpfv1wjz99l4l";
|
2016-06-25 07:03:03 +02:00
|
|
|
};
|
|
|
|
|
2017-05-17 21:26:11 +02:00
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
2017-04-16 09:13:32 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
2017-04-16 09:42:37 +02:00
|
|
|
substituteInPlace src/config.h --replace /usr/share/gpxsee $out/share/gpxsee
|
2017-04-16 09:13:32 +02:00
|
|
|
lrelease lang/*.ts
|
2016-06-25 07:03:03 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2017-04-16 09:42:37 +02:00
|
|
|
install -Dm755 GPXSee $out/bin/GPXSee
|
|
|
|
|
|
|
|
mkdir -p $out/share/gpxsee
|
|
|
|
cp pkg/maps.txt $out/share/gpxsee
|
2016-06-25 07:03:03 +02:00
|
|
|
'';
|
2017-04-16 09:13:32 +02:00
|
|
|
|
2016-06-25 07:03:03 +02:00
|
|
|
meta = with stdenv.lib; {
|
2018-01-28 15:54:37 +01:00
|
|
|
homepage = http://www.gpxsee.org/;
|
2016-06-25 07:03:03 +02:00
|
|
|
description = "GPX viewer and analyzer";
|
2018-01-28 15:54:37 +01:00
|
|
|
longDescription = ''
|
|
|
|
GPXSee is a Qt-based GPS log file viewer and analyzer that supports GPX,
|
|
|
|
TCX, KML, FIT, IGC and NMEA files.
|
|
|
|
'';
|
2016-06-25 07:03:03 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.womfoo ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|