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

45 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, qmake, qttools }:
2016-06-25 05:03:03 +00:00
stdenv.mkDerivation rec {
name = "gpxsee-${version}";
version = "6.3";
2016-06-25 05:03:03 +00:00
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
rev = version;
sha256 = "0kbnmcis04kjqkd0msfjd8rdmdf23c71dpzx9wcpf2yadc9rv4c9";
2016-06-25 05:03:03 +00:00
};
2018-09-02 10:17:22 +00:00
nativeBuildInputs = [ qmake ];
buildInputs = [ qttools ];
2017-04-16 07:13:32 +00:00
preConfigure = ''
substituteInPlace src/config.h --replace /usr/share/gpxsee $out/share/gpxsee
2017-04-16 07:13:32 +00:00
lrelease lang/*.ts
2016-06-25 05:03:03 +00:00
'';
2018-09-02 10:17:22 +00:00
installPhase = ''
install -Dm755 GPXSee $out/bin/GPXSee
mkdir -p $out/share/gpxsee
2018-09-02 10:17:22 +00:00
cp -r pkg/csv $out/share/gpxsee/
cp -r pkg/maps $out/share/gpxsee/
mkdir -p $out/share/gpxsee/translations
cp -r lang/*.qm $out/share/gpxsee/translations
2016-06-25 05:03:03 +00:00
'';
2017-04-16 07:13:32 +00:00
2018-09-02 10:17:22 +00:00
enableParallelBuilding = true;
2016-06-25 05:03:03 +00:00
meta = with stdenv.lib; {
2018-01-28 14:54:37 +00:00
homepage = http://www.gpxsee.org/;
2016-06-25 05:03:03 +00:00
description = "GPX viewer and analyzer";
2018-01-28 14:54:37 +00: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 05:03:03 +00:00
license = licenses.gpl3;
maintainers = [ maintainers.womfoo ];
platforms = platforms.linux;
};
}