depot/third_party/nixpkgs/pkgs/development/libraries/geographiclib/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

34 lines
980 B
Nix

{ 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;
};
}