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

37 lines
829 B
Nix
Raw Normal View History

2017-05-17 21:26:11 +02:00
{ stdenv, fetchFromGitHub, qmake, qtbase, qttools }:
2016-06-25 07:03:03 +02:00
stdenv.mkDerivation rec {
name = "gpxsee-${version}";
2017-09-24 13:42:49 +02:00
version = "4.14";
2016-06-25 07:03:03 +02:00
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
rev = version;
2017-09-24 13:42:49 +02:00
sha256 = "0yv3hcs5b8a88mp24h8r2sn69phwrahdff5pp74lz24270il3jgb";
2016-06-25 07:03:03 +02:00
};
2017-05-17 21:26:11 +02:00
nativeBuildInputs = [ qmake qttools ];
2017-04-16 09:13:32 +02:00
preConfigure = ''
substituteInPlace src/config.h --replace /usr/share/gpxsee $out/share/gpxsee
2017-04-16 09:13:32 +02:00
lrelease lang/*.ts
2016-06-25 07:03:03 +02:00
'';
preFixup = ''
install -Dm755 GPXSee $out/bin/GPXSee
mkdir -p $out/share/gpxsee
cp pkg/maps.txt $out/share/gpxsee
2016-06-25 07:03:03 +02:00
'';
2017-04-16 09:13:32 +02:00
2016-06-25 07:03:03 +02: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;
};
}