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

38 lines
891 B
Nix
Raw Normal View History

2017-06-02 15:40:19 +00:00
{ stdenv, fetchFromGitHub, qmake, qtbase, qttools, makeQtWrapper }:
2016-06-25 05:03:03 +00:00
stdenv.mkDerivation rec {
name = "gpxsee-${version}";
2017-05-30 14:25:50 +00:00
version = "4.8";
2016-06-25 05:03:03 +00:00
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
rev = version;
2017-05-30 14:25:50 +00:00
sha256 = "17s1v6b1j7pi0yj554bd0cg14bl854gssp5gj2pl51rxji6zr0wp";
2016-06-25 05:03:03 +00:00
};
2017-06-02 15:40:19 +00:00
nativeBuildInputs = [ qmake qttools makeQtWrapper ];
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
'';
preFixup = ''
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 05:03:03 +00:00
'';
2017-04-16 07:13:32 +00:00
2016-06-25 05:03:03 +00: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;
};
}