2017-04-16 08:42:37 +01:00
|
|
|
{ stdenv, fetchFromGitHub, qmakeHook, qtbase, qttools, makeQtWrapper }:
|
2016-06-25 06:03:03 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "gpxsee-${version}";
|
2017-04-16 08:13:32 +01:00
|
|
|
version = "4.3";
|
2016-06-25 06:03:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tumic0";
|
|
|
|
repo = "GPXSee";
|
|
|
|
rev = version;
|
2017-04-16 08:13:32 +01:00
|
|
|
sha256 = "15f686frxlrmdvh5cc837kx62g0ihqj4vb87i8433g7l5vqkv3lf";
|
2016-06-25 06:03:03 +01:00
|
|
|
};
|
|
|
|
|
2017-04-16 08:42:37 +01:00
|
|
|
nativeBuildInputs = [ qmakeHook qttools makeQtWrapper ];
|
2017-04-16 08:13:32 +01:00
|
|
|
|
|
|
|
preConfigure = ''
|
2017-04-16 08:42:37 +01:00
|
|
|
substituteInPlace src/config.h --replace /usr/share/gpxsee $out/share/gpxsee
|
2017-04-16 08:13:32 +01:00
|
|
|
lrelease lang/*.ts
|
2016-06-25 06:03:03 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
2017-04-16 08:42:37 +01:00
|
|
|
install -Dm755 GPXSee $out/bin/GPXSee
|
|
|
|
wrapQtProgram $out/bin/GPXSee
|
|
|
|
|
|
|
|
mkdir -p $out/share/gpxsee
|
|
|
|
cp pkg/maps.txt $out/share/gpxsee
|
2016-06-25 06:03:03 +01:00
|
|
|
'';
|
2017-04-16 08:13:32 +01:00
|
|
|
|
2016-06-25 06:03:03 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://tumic.wz.cz/gpxsee;
|
|
|
|
description = "GPX viewer and analyzer";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.womfoo ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|