Merge pull request #256727 from sikmir/gpx-viewer
gpx-viewer: 0.4.0 → 0.5.0
This commit is contained in:
commit
1a6b49ed47
@ -1,31 +1,58 @@
|
|||||||
{ lib, stdenv, fetchurl, intltool, libxml2, pkg-config, gnome, libchamplain, gdl, wrapGAppsHook }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, libxml2
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, vala
|
||||||
|
, pkg-config
|
||||||
|
, gnome
|
||||||
|
, libchamplain
|
||||||
|
, gdl
|
||||||
|
, wrapGAppsHook
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "gpx-viewer";
|
pname = "gpx-viewer";
|
||||||
version = "0.4.0";
|
version = "0.5.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://launchpad.net/gpx-viewer/trunk/${version}/+download/${pname}-${version}.tar.gz";
|
owner = "DaveDavenport";
|
||||||
sha256 = "956acfaf870ac436300cd9953dece630df7fd7dff8e4ae2577a6002884466f80";
|
repo = "gpx-viewer";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-6AChX0UEIrQExaq3oo9Be5Sr13+POHFph7pZegqcjio=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = fetchurl {
|
patches = [
|
||||||
url = "https://code.launchpad.net/~chkr/gpx-viewer/gtk3-bugfix/+merge/260766/+preview-diff/628965/+files/preview.diff";
|
# Compile with libchamplain>=0.12.21
|
||||||
sha256 = "1yl7jk7skkcx10nny5zdixswcymjd9s9c1zhm1i5y3aqhchvmfs7";
|
(fetchpatch {
|
||||||
};
|
url = "https://github.com/DaveDavenport/gpx-viewer/commit/12ed6003bdad840586351bdb4e00c18719873c0e.patch";
|
||||||
patchFlags = [ "-p0" ];
|
hash = "sha256-2/r0M3Yxj+vWgny1Pd5G7NYMb0uC/ByZ7y3tqLVccOc=";
|
||||||
|
})
|
||||||
configureFlags = [ "--disable-database-updates" ];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
intltool pkg-config
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
vala
|
||||||
wrapGAppsHook # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
|
wrapGAppsHook # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
|
||||||
];
|
];
|
||||||
buildInputs = [ gdl libchamplain gnome.adwaita-icon-theme libxml2 ];
|
|
||||||
|
buildInputs = [
|
||||||
|
gdl
|
||||||
|
libchamplain
|
||||||
|
gnome.adwaita-icon-theme
|
||||||
|
libxml2
|
||||||
|
];
|
||||||
|
|
||||||
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://blog.sarine.nl/tag/gpxviewer/";
|
homepage = "https://blog.sarine.nl/tag/gpxviewer/";
|
||||||
description = "Simple tool to visualize tracks and waypoints stored in a gpx file";
|
description = "Simple tool to visualize tracks and waypoints stored in a gpx file";
|
||||||
|
changelog = "https://github.com/DaveDavenport/gpx-viewer/blob/${src.rev}/NEWS";
|
||||||
platforms = with platforms; linux;
|
platforms = with platforms; linux;
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
maintainers = with maintainers; [ dotlambda ];
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
|
Loading…
Reference in New Issue
Block a user