nixpkgs/pkgs/by-name/gp/gpx-viewer/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
1.3 KiB
Nix
Raw Normal View History

2023-09-22 17:06:48 +01:00
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, libxml2
, meson
, ninja
, vala
, pkg-config
, adwaita-icon-theme
2023-09-22 17:06:48 +01:00
, libchamplain
, gdl
, wrapGAppsHook3
2023-09-22 17:06:48 +01:00
}:
2017-09-25 22:42:00 +01:00
stdenv.mkDerivation rec {
pname = "gpx-viewer";
2023-09-22 17:06:48 +01:00
version = "0.5.0";
2017-09-25 22:42:00 +01:00
2023-09-22 17:06:48 +01:00
src = fetchFromGitHub {
owner = "DaveDavenport";
repo = "gpx-viewer";
rev = version;
hash = "sha256-6AChX0UEIrQExaq3oo9Be5Sr13+POHFph7pZegqcjio=";
2017-09-25 22:42:00 +01:00
};
2023-09-22 17:06:48 +01: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=";
})
];
2017-09-25 22:42:00 +01:00
nativeBuildInputs = [
2023-09-22 17:06:48 +01:00
meson
ninja
pkg-config
vala
wrapGAppsHook3 # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
2017-09-25 22:42:00 +01:00
];
2023-09-22 17:06:48 +01:00
buildInputs = [
gdl
libchamplain
adwaita-icon-theme
2023-09-22 17:06:48 +01:00
libxml2
];
hardeningDisable = [ "format" ];
2017-09-25 22:42:00 +01:00
meta = with lib; {
homepage = "https://blog.sarine.nl/tag/gpxviewer/";
2017-09-25 22:42:00 +01:00
description = "Simple tool to visualize tracks and waypoints stored in a gpx file";
mainProgram = "gpx-viewer";
2023-09-22 17:06:48 +01:00
changelog = "https://github.com/DaveDavenport/gpx-viewer/blob/${src.rev}/NEWS";
2017-09-25 22:42:00 +01:00
platforms = with platforms; linux;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dotlambda ];
};
}