1 { lib, stdenv, fetchFromGitHub, cmake, doxygen }:
3 stdenv.mkDerivation rec {
4 pname = "geographiclib";
7 src = fetchFromGitHub {
8 owner = "geographiclib";
9 repo = "geographiclib";
11 hash = "sha256-1CuB3H4KFFRo8wdFaa9NQLBdT8HxK2AdiVkEhbeYagM=";
14 nativeBuildInputs = [ cmake doxygen ];
17 "-DBUILD_DOCUMENTATION=ON"
18 "-DCMAKE_INSTALL_LIBDIR=lib"
22 description = "C++ geographic library";
24 GeographicLib is a small C++ library for:
25 * geodesic and rhumb line calculations
26 * conversions between geographic, UTM, UPS, MGRS, geocentric, and local cartesian coordinates
27 * gravity (e.g., EGM2008) and geomagnetic field (e.g., WMM2020) calculations
29 homepage = "https://geographiclib.sourceforge.io/";
30 license = licenses.mit;
31 maintainers = with maintainers; [ sikmir ];
32 platforms = platforms.unix;