geographiclib: init at 2.1.1

This commit is contained in:
Nikolay Korotkiy 2022-08-20 21:23:15 +03:00
parent b29c25d356
commit 31a01a0b98
No known key found for this signature in database
GPG Key ID: D1DE6D7F693663A5
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ lib, stdenv, fetchFromGitHub, cmake, doxygen }:
stdenv.mkDerivation rec {
pname = "geographiclib";
version = "2.1.1";
src = fetchFromGitHub {
owner = "geographiclib";
repo = "geographiclib";
rev = "v${version}";
hash = "sha256-7K4vI5vNSGPo2d9QNmasjJa4oMDfE8WTW6Guk2604Yg=";
};
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;
};
}

View File

@ -18496,6 +18496,8 @@ with pkgs;
geoipDatabase = geolite-legacy;
};
geographiclib = callPackage ../development/libraries/geographiclib { };
geoip = callPackage ../development/libraries/geoip { };
geoipjava = callPackage ../development/libraries/java/geoipjava { };