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

44 lines
1.2 KiB
Nix
Raw Normal View History

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