nixpkgs/pkgs/development/libraries/geographiclib/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
980 B
Nix
Raw Normal View History

2022-08-20 18:23:15 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, doxygen }:
stdenv.mkDerivation rec {
pname = "geographiclib";
2023-01-15 03:55:36 +00:00
version = "2.1.2";
2022-08-20 18:23:15 +00:00
src = fetchFromGitHub {
owner = "geographiclib";
repo = "geographiclib";
rev = "v${version}";
2023-01-15 03:55:36 +00:00
hash = "sha256-DVJi6EosJOPoVJEgZYsro5C/lrHrXEfbjLWiQVJk4+U=";
2022-08-20 18:23:15 +00:00
};
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;
};
}