2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2024-02-29 20:09:43 +00:00
|
|
|
, cmake
|
2023-02-16 17:41:37 +00:00
|
|
|
, testers
|
|
|
|
}:
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-04-15 01:41:22 +00:00
|
|
|
pname = "geos";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.9.5";
|
2022-04-15 01:41:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2024-07-27 06:49:29 +00:00
|
|
|
url = "https://download.osgeo.org/geos/geos-${finalAttrs.version}.tar.bz2";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-xsmu36iGT7RLp4kRQIRCOCv9BpDPLUCRrjgFyGN4kDY=";
|
2022-04-15 01:41:22 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
enableParallelBuilding = true;
|
2022-04-15 01:41:22 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2022-04-15 01:41:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "C++ port of the Java Topology Suite (JTS)";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "geos-config";
|
2022-04-15 01:41:22 +00:00
|
|
|
homepage = "https://trac.osgeo.org/geos";
|
|
|
|
license = licenses.lgpl21Only;
|
2023-02-16 17:41:37 +00:00
|
|
|
pkgConfigModules = [ "geos" ];
|
2022-04-15 01:41:22 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
willcohen
|
|
|
|
];
|
|
|
|
};
|
2023-02-16 17:41:37 +00:00
|
|
|
})
|