mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
62 lines
1.3 KiB
Nix
62 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, libxml2
|
|
, meson
|
|
, ninja
|
|
, vala
|
|
, pkg-config
|
|
, adwaita-icon-theme
|
|
, libchamplain
|
|
, gdl
|
|
, wrapGAppsHook3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gpx-viewer";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DaveDavenport";
|
|
repo = "gpx-viewer";
|
|
rev = version;
|
|
hash = "sha256-6AChX0UEIrQExaq3oo9Be5Sr13+POHFph7pZegqcjio=";
|
|
};
|
|
|
|
patches = [
|
|
# Compile with libchamplain>=0.12.21
|
|
(fetchpatch {
|
|
url = "https://github.com/DaveDavenport/gpx-viewer/commit/12ed6003bdad840586351bdb4e00c18719873c0e.patch";
|
|
hash = "sha256-2/r0M3Yxj+vWgny1Pd5G7NYMb0uC/ByZ7y3tqLVccOc=";
|
|
})
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
vala
|
|
wrapGAppsHook3 # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
|
|
];
|
|
|
|
buildInputs = [
|
|
gdl
|
|
libchamplain
|
|
adwaita-icon-theme
|
|
libxml2
|
|
];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://blog.sarine.nl/tag/gpxviewer/";
|
|
description = "Simple tool to visualize tracks and waypoints stored in a gpx file";
|
|
mainProgram = "gpx-viewer";
|
|
changelog = "https://github.com/DaveDavenport/gpx-viewer/blob/${src.rev}/NEWS";
|
|
platforms = with platforms; linux;
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
};
|
|
}
|