depot/third_party/nixpkgs/pkgs/by-name/ge/geographiclib/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

34 lines
978 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, doxygen }:
stdenv.mkDerivation rec {
pname = "geographiclib";
version = "2.4";
src = fetchFromGitHub {
owner = "geographiclib";
repo = "geographiclib";
rev = "v${version}";
hash = "sha256-1CuB3H4KFFRo8wdFaa9NQLBdT8HxK2AdiVkEhbeYagM=";
};
nativeBuildInputs = [ cmake doxygen ];
cmakeFlags = [
"-DBUILD_DOCUMENTATION=ON"
"-DCMAKE_INSTALL_LIBDIR=lib"
];
meta = with lib; {
description = "C++ geographic library";
longDescription = ''
GeographicLib is a small C++ library for:
* geodesic and rhumb line calculations
* conversions between geographic, UTM, UPS, MGRS, geocentric, and local cartesian coordinates
* gravity (e.g., EGM2008) and geomagnetic field (e.g., WMM2020) calculations
'';
homepage = "https://geographiclib.sourceforge.io/";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}