2023-02-11 13:55:46 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, testers
|
|
|
|
}:
|
2022-03-29 15:04:17 +00:00
|
|
|
|
2023-02-11 13:55:46 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-03-29 15:04:17 +00:00
|
|
|
pname = "geos";
|
|
|
|
version = "3.9.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-02-11 13:55:46 +00:00
|
|
|
url = "https://download.osgeo.org/geos/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
|
2022-03-29 15:04:17 +00:00
|
|
|
sha256 = "sha256-RKWpviHX1HNDa/Yhwt3MPPWou+PHhuEyKWGKO52GEpc=";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
# https://trac.osgeo.org/geos/ticket/993
|
|
|
|
configureFlags = lib.optional stdenv.isAarch32 "--disable-inline";
|
|
|
|
|
2023-02-11 13:55:46 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2022-03-29 15:04:17 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "C++ port of the Java Topology Suite (JTS)";
|
|
|
|
homepage = "https://trac.osgeo.org/geos";
|
|
|
|
license = licenses.lgpl21Only;
|
2023-02-11 13:55:46 +00:00
|
|
|
pkgConfigModules = [ "geos" ];
|
2022-03-29 15:04:17 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
willcohen
|
|
|
|
];
|
|
|
|
};
|
2023-02-11 13:55:46 +00:00
|
|
|
})
|