Skip to content

Commit

Permalink
geographiclib: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
sikmir committed Dec 29, 2024
1 parent 5dcfe0e commit 90b3a6a
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions pkgs/by-name/ge/geographiclib/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,27 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "geographiclib";
repo = "geographiclib";
rev = "v${version}";
tag = "v${version}";
hash = "sha256-hFheJ6Q1GEfqPVq7t4SHN/n2JniqCQUzwl7GEVG0jgo=";
};

outputs = [
"dev"
"doc"
"out"
];

nativeBuildInputs = [
cmake
doxygen
];

cmakeFlags = [
"-DBUILD_DOCUMENTATION=ON"
"-DCMAKE_INSTALL_LIBDIR=lib"
(lib.cmakeBool "BUILD_DOCUMENTATION" true)
(lib.cmakeFeature "CMAKE_INSTALL_LIBDIR" "lib")
];

meta = with lib; {
meta = {
description = "C++ geographic library";
longDescription = ''
GeographicLib is a small C++ library for:
Expand All @@ -36,8 +42,8 @@ stdenv.mkDerivation rec {
* 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;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sikmir ];
platforms = lib.platforms.unix;
};
}

0 comments on commit 90b3a6a

Please sign in to comment.