nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit f9bdfa580f14ab7ab6044d606c54a625965f9fec
parent a1dd5e3bb195e3c625fa29ce0d4adb8c9421ec44
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat, 20 Aug 2022 20:59:06 +0300

geographiclib: 2.1 → 2.1.1

Diffstat:
Mpkgs/geospatial/geographiclib/default.nix | 23+++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)

diff --git a/pkgs/geospatial/geographiclib/default.nix b/pkgs/geospatial/geographiclib/default.nix @@ -1,20 +1,27 @@ -{ lib, stdenv, fetchurl }: +{ lib, stdenv, fetchFromGitHub, cmake, doxygen }: stdenv.mkDerivation rec { pname = "geographiclib"; - version = "2.1"; + version = "2.1.1"; - src = fetchurl { - url = "mirror://sourceforge/geographiclib/GeographicLib-${version}.tar.gz"; - hash = "sha256-ekvbz+dseEiWDxd7WXGH4Wq9MBQNoGf/UiHO6QDPwCk="; + src = fetchFromGitHub { + owner = "geographiclib"; + repo = "geographiclib"; + rev = "v${version}"; + hash = "sha256-7K4vI5vNSGPo2d9QNmasjJa4oMDfE8WTW6Guk2604Yg="; }; + nativeBuildInputs = [ cmake doxygen ]; + + cmakeFlags = [ + "-DBUILD_DOCUMENTATION=ON" + ]; + meta = with lib; { description = "GeographicLib offers a C++ interfaces to a small (but important!) set of geographic transformations"; - homepage = "http://geographiclib.sourceforge.io/"; + homepage = "https://geographiclib.sourceforge.io/"; license = licenses.mit; maintainers = [ maintainers.sikmir ]; - platforms = platforms.linux; - skip.ci = stdenv.isDarwin; + platforms = platforms.unix; }; }