2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, fetchurl
|
2023-03-30 22:05:00 +00:00
|
|
|
, stdenv
|
2023-02-16 17:41:37 +00:00
|
|
|
, testers
|
2023-03-30 22:05:00 +00:00
|
|
|
, cmake
|
2023-02-16 17:41:37 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-03-09 03:18:52 +00:00
|
|
|
pname = "geos";
|
2023-03-30 22:05:00 +00:00
|
|
|
version = "3.11.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-02-16 17:41:37 +00:00
|
|
|
url = "https://download.osgeo.org/geos/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
|
2023-03-30 22:05:00 +00:00
|
|
|
hash = "sha256-sfB3ZpSBxaPmKv/EnpbrBvKBmHpdNv2rIlIX5bgl5Mw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C++ port of the Java Topology Suite (JTS)";
|
|
|
|
homepage = "https://trac.osgeo.org/geos";
|
2021-03-09 03:18:52 +00:00
|
|
|
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
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-02-16 17:41:37 +00:00
|
|
|
})
|