mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 15:11:35 +00:00
40 lines
978 B
Nix
40 lines
978 B
Nix
{ stdenv, fetchFromGitHub, qmake, qtbase, qttools }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gpxsee-${version}";
|
|
version = "4.19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tumic0";
|
|
repo = "GPXSee";
|
|
rev = version;
|
|
sha256 = "1xjf2aawf633c1ydhpcsjhdlfkjkfsjbcgjd737xpfv1wjz99l4l";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace src/config.h --replace /usr/share/gpxsee $out/share/gpxsee
|
|
lrelease lang/*.ts
|
|
'';
|
|
|
|
preFixup = ''
|
|
install -Dm755 GPXSee $out/bin/GPXSee
|
|
|
|
mkdir -p $out/share/gpxsee
|
|
cp pkg/maps.txt $out/share/gpxsee
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.gpxsee.org/;
|
|
description = "GPX viewer and analyzer";
|
|
longDescription = ''
|
|
GPXSee is a Qt-based GPS log file viewer and analyzer that supports GPX,
|
|
TCX, KML, FIT, IGC and NMEA files.
|
|
'';
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.womfoo ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|