nixpkgs/pkgs/applications/misc/gpxsee/default.nix
Kranium Gikos Mendoza 9f3c2bc839 gpxsee: 4.3 -> 4.8
2017-05-31 00:30:40 +10:00

37 lines
899 B
Nix

{ stdenv, fetchFromGitHub, qmakeHook, qtbase, qttools, makeQtWrapper }:
stdenv.mkDerivation rec {
name = "gpxsee-${version}";
version = "4.8";
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
rev = version;
sha256 = "17s1v6b1j7pi0yj554bd0cg14bl854gssp5gj2pl51rxji6zr0wp";
};
nativeBuildInputs = [ qmakeHook qttools makeQtWrapper ];
preConfigure = ''
substituteInPlace src/config.h --replace /usr/share/gpxsee $out/share/gpxsee
lrelease lang/*.ts
'';
preFixup = ''
install -Dm755 GPXSee $out/bin/GPXSee
wrapQtProgram $out/bin/GPXSee
mkdir -p $out/share/gpxsee
cp pkg/maps.txt $out/share/gpxsee
'';
meta = with stdenv.lib; {
homepage = http://tumic.wz.cz/gpxsee;
description = "GPX viewer and analyzer";
license = licenses.gpl3;
maintainers = [ maintainers.womfoo ];
platforms = platforms.linux;
};
}