1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 18:12:46 +00:00
nixpkgs/pkgs/applications/misc/gpxsee/default.nix
Kranium Gikos Mendoza 310746b6db gpxsee: 4.8 -> 4.9
2017-08-15 06:51:41 +10:00

37 lines
828 B
Nix

{ stdenv, fetchFromGitHub, qmake, qtbase, qttools }:
stdenv.mkDerivation rec {
name = "gpxsee-${version}";
version = "4.9";
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
rev = version;
sha256 = "0jk99yhrms1wzqpcnsjydcl2nysidv639s2j7l53yp60g0zz8174";
};
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://tumic.wz.cz/gpxsee;
description = "GPX viewer and analyzer";
license = licenses.gpl3;
maintainers = [ maintainers.womfoo ];
platforms = platforms.linux;
};
}