2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, libxml2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, pkg-config
|
2024-07-27 06:49:29 +00:00
|
|
|
, adwaita-icon-theme
|
2023-10-09 19:29:22 +00:00
|
|
|
, libchamplain
|
|
|
|
, gdl
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gpx-viewer";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.5.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "DaveDavenport";
|
|
|
|
repo = "gpx-viewer";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-6AChX0UEIrQExaq3oo9Be5Sr13+POHFph7pZegqcjio=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
patches = [
|
|
|
|
# Compile with libchamplain>=0.12.21
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/DaveDavenport/gpx-viewer/commit/12ed6003bdad840586351bdb4e00c18719873c0e.patch";
|
|
|
|
hash = "sha256-2/r0M3Yxj+vWgny1Pd5G7NYMb0uC/ByZ7y3tqLVccOc=";
|
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2023-10-09 19:29:22 +00:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
vala
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3 # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdl
|
|
|
|
libchamplain
|
2024-07-27 06:49:29 +00:00
|
|
|
adwaita-icon-theme
|
2023-10-09 19:29:22 +00:00
|
|
|
libxml2
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://blog.sarine.nl/tag/gpxviewer/";
|
|
|
|
description = "Simple tool to visualize tracks and waypoints stored in a gpx file";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gpx-viewer";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/DaveDavenport/gpx-viewer/blob/${src.rev}/NEWS";
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|