2022-04-15 01:41:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2022-06-26 10:26:21 +00:00
|
|
|
, fetchpatch
|
2022-04-15 01:41:22 +00:00
|
|
|
, cmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-03-09 03:18:52 +00:00
|
|
|
pname = "geos";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "3.10.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-09 03:18:52 +00:00
|
|
|
url = "https://download.osgeo.org/geos/${pname}-${version}.tar.bz2";
|
2022-04-15 01:41:22 +00:00
|
|
|
sha256 = "sha256-ULvFmaw4a0wrOWLcxBHwBAph8gSq7066ciXs3Qz0VxU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
patches = [
|
|
|
|
# Fix paths with absolute CMAKE_INSTALL_*DIR
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/libgeos/geos/commit/11faa4db672ed61d64fd8a6f1a59114f5b5f2406.patch";
|
|
|
|
hash = "sha256-oAArwGq91Z93C6hBPQD0AlY8Q4Nnn6tA40HUPoZ5ftc=";
|
|
|
|
})
|
|
|
|
];
|
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
|
|
|
|
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;
|
2022-04-15 01:41:22 +00:00
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
willcohen
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|