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

45 lines
1.3 KiB
Nix
Raw Normal View History

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