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

45 lines
1.3 KiB
Nix
Raw Normal View History

2020-09-23 07:49:37 +01:00
{ stdenv, mkDerivation, fetchFromGitHub, qmake, qttools, qttranslations, substituteAll }:
2016-06-25 06:03:03 +01:00
2019-07-29 20:39:25 +01:00
mkDerivation rec {
2019-05-30 12:00:25 +01:00
pname = "gpxsee";
2020-11-28 04:20:53 +00:00
version = "7.37";
2016-06-25 06:03:03 +01:00
src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
rev = version;
2020-11-28 04:20:53 +00:00
sha256 = "0fpb43smh0kwic5pdxs46c0hkqj8g084h72pa024x1my6w12y9b8";
2016-06-25 06:03:03 +01:00
};
2020-09-23 07:49:37 +01:00
patches = (substituteAll {
2020-06-01 09:45:46 +01:00
# See https://github.com/NixOS/nixpkgs/issues/86054
2020-09-23 07:49:37 +01:00
src = ./fix-qttranslations-path.diff;
inherit qttranslations;
});
2020-06-01 09:45:46 +01:00
2020-03-01 20:23:02 +00:00
nativeBuildInputs = [ qmake qttools ];
2017-04-16 08:13:32 +01:00
preConfigure = ''
2020-04-26 12:53:44 +01:00
lrelease gpxsee.pro
2016-06-25 06:03:03 +01:00
'';
2020-03-01 20:23:02 +00:00
postInstall = with stdenv; lib.optionalString isDarwin ''
2020-01-29 10:07:56 +00:00
mkdir -p $out/Applications
mv GPXSee.app $out/Applications
wrapQtApp $out/Applications/GPXSee.app/Contents/MacOS/GPXSee
'';
2020-03-01 20:23:02 +00:00
meta = with stdenv.lib; {
2019-05-30 12:00:25 +01:00
description = "GPS log file viewer and analyzer";
2018-01-28 14:54:37 +00:00
longDescription = ''
2019-05-30 12:00:25 +01:00
GPXSee is a Qt-based GPS log file viewer and analyzer that supports
all common GPS log file formats.
2018-01-28 14:54:37 +00:00
'';
2020-10-28 07:14:21 +00:00
homepage = "https://www.gpxsee.org/";
changelog = "https://build.opensuse.org/package/view_file/home:tumic:GPXSee/gpxsee/gpxsee.changes";
2016-06-25 06:03:03 +01:00
license = licenses.gpl3;
2019-09-03 19:11:22 +01:00
maintainers = with maintainers; [ womfoo sikmir ];
2020-01-29 10:07:56 +00:00
platforms = with platforms; linux ++ darwin;
2016-06-25 06:03:03 +01:00
};
}