2022-03-22 20:03:34 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
2023-03-20 11:36:46 +00:00
|
|
|
, stdenv
|
2023-02-11 13:55:46 +00:00
|
|
|
, testers
|
2023-03-20 11:36:46 +00:00
|
|
|
, cmake
|
2023-02-11 13:55:46 +00:00
|
|
|
}:
|
2007-12-03 16:01:51 +00:00
|
|
|
|
2023-02-11 13:55:46 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-02-27 17:51:17 +00:00
|
|
|
pname = "geos";
|
2023-03-20 11:36:46 +00:00
|
|
|
version = "3.11.2";
|
2007-12-03 16:01:51 +00:00
|
|
|
|
2009-03-06 23:21:28 +00:00
|
|
|
src = fetchurl {
|
2023-02-11 13:55:46 +00:00
|
|
|
url = "https://download.osgeo.org/geos/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
|
2023-03-20 11:36:46 +00:00
|
|
|
hash = "sha256-sfB3ZpSBxaPmKv/EnpbrBvKBmHpdNv2rIlIX5bgl5Mw=";
|
2009-03-06 23:21:28 +00:00
|
|
|
};
|
2007-12-03 16:01:51 +00:00
|
|
|
|
2022-06-23 23:49:53 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-08-08 17:12:13 +00:00
|
|
|
|
2022-12-10 20:29:55 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2023-02-11 13:55:46 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2023-08-14 23:33:57 +00:00
|
|
|
description = "C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software";
|
|
|
|
homepage = "https://libgeos.org";
|
2021-02-27 17:51:17 +00:00
|
|
|
license = licenses.lgpl21Only;
|
2023-06-19 15:23:53 +00:00
|
|
|
maintainers = teams.geospatial.members;
|
2023-02-11 13:55:46 +00:00
|
|
|
pkgConfigModules = [ "geos" ];
|
2023-08-14 23:33:57 +00:00
|
|
|
mainProgram = "geosop";
|
2007-12-03 16:01:51 +00:00
|
|
|
};
|
2023-02-11 13:55:46 +00:00
|
|
|
})
|