1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/misc/gpxsee/default.nix

45 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, qmake, qttools }:
2016-06-25 06:03:03 +01:00
stdenv.mkDerivation rec {
name = "gpxsee-${version}";
2019-01-05 09:44:07 +00:00
version = "7.1";
2016-06-25 06:03:03 +01:00
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
rev = version;
2019-01-05 09:44:07 +00:00
sha256 = "1dgag8j3566qwiz1pschfq2wqdp7y1pr4cm9na4zwrdjhn3ci6v5";
2016-06-25 06:03:03 +01:00
};
2018-09-02 11:17:22 +01:00
nativeBuildInputs = [ qmake ];
buildInputs = [ qttools ];
2017-04-16 08:13:32 +01:00
preConfigure = ''
2019-01-05 09:44:07 +00:00
substituteInPlace src/common/programpaths.cpp --replace /usr/share/ $out/share/
2017-04-16 08:13:32 +01:00
lrelease lang/*.ts
2016-06-25 06:03:03 +01:00
'';
2018-09-02 11:17:22 +01:00
installPhase = ''
install -Dm755 GPXSee $out/bin/GPXSee
mkdir -p $out/share/gpxsee
2018-09-02 11:17:22 +01: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 06:03:03 +01:00
'';
2017-04-16 08:13:32 +01:00
2018-09-02 11:17:22 +01:00
enableParallelBuilding = true;
2016-06-25 06:03:03 +01:00
meta = with stdenv.lib; {
2019-01-05 09:44:07 +00:00
homepage = https://www.gpxsee.org/;
2016-06-25 06:03:03 +01: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,
2019-01-05 09:44:07 +00:00
TCX, KML, FIT, IGC, NMEA, SLF, LOC and OziExplorer files.
2018-01-28 14:54:37 +00:00
'';
2016-06-25 06:03:03 +01:00
license = licenses.gpl3;
maintainers = [ maintainers.womfoo ];
platforms = platforms.linux;
};
}