forked from mirrors/nixpkgs
7fe9b6d925
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/gpxsee/versions
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, qmake, qttools }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gpxsee-${version}";
|
|
version = "5.18";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tumic0";
|
|
repo = "GPXSee";
|
|
rev = version;
|
|
sha256 = "0dl10fr881b8fwf2yj14bd6gagb8hm0s46q18y2y56rw98nk4vrq";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
buildInputs = [ qttools ];
|
|
|
|
preConfigure = ''
|
|
substituteInPlace src/config.h --replace /usr/share/gpxsee $out/share/gpxsee
|
|
lrelease lang/*.ts
|
|
'';
|
|
|
|
installPhase = ''
|
|
install -Dm755 GPXSee $out/bin/GPXSee
|
|
mkdir -p $out/share/gpxsee
|
|
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
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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;
|
|
};
|
|
}
|