Merge pull request #165322 from willcohen/geos-3.10

This commit is contained in:
Sandro
2022-04-11 11:45:30 +02:00
committed by GitHub
4 changed files with 44 additions and 8 deletions
+25
View File
@@ -0,0 +1,25 @@
{ lib, stdenv, fetchurl }:
stdenv.mkDerivation rec {
pname = "geos";
version = "3.9.2";
src = fetchurl {
url = "https://download.osgeo.org/geos/${pname}-${version}.tar.bz2";
sha256 = "sha256-RKWpviHX1HNDa/Yhwt3MPPWou+PHhuEyKWGKO52GEpc=";
};
enableParallelBuilding = true;
# https://trac.osgeo.org/geos/ticket/993
configureFlags = lib.optional stdenv.isAarch32 "--disable-inline";
meta = with lib; {
description = "C++ port of the Java Topology Suite (JTS)";
homepage = "https://trac.osgeo.org/geos";
license = licenses.lgpl21Only;
maintainers = with lib.maintainers; [
willcohen
];
};
}
+15 -6
View File
@@ -1,22 +1,31 @@
{ lib, stdenv, fetchurl }:
{ lib
, stdenv
, fetchurl
, cmake }:
stdenv.mkDerivation rec {
pname = "geos";
version = "3.9.1";
version = "3.10.2";
src = fetchurl {
url = "https://download.osgeo.org/geos/${pname}-${version}.tar.bz2";
sha256 = "sha256-fmMFB9ysncB1ZdJJom8GoVyfWwxS3SkSmg49OB1+OCo=";
sha256 = "sha256-ULvFmaw4a0wrOWLcxBHwBAph8gSq7066ciXs3Qz0VxU=";
};
enableParallelBuilding = true;
nativeBuildInputs = [ cmake ];
# https://trac.osgeo.org/geos/ticket/993
configureFlags = lib.optional stdenv.isAarch32 "--disable-inline";
postPatch = ''
substituteInPlace tools/geos-config.in \
--replace "@libdir@" "@prefix@/lib" \
--replace "@includedir@" "@prefix@/include"
'';
meta = with lib; {
description = "C++ port of the Java Topology Suite (JTS)";
homepage = "https://trac.osgeo.org/geos";
license = licenses.lgpl21Only;
maintainers = with lib.maintainers; [
willcohen
];
};
}
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, zlib, curl, protobuf, prime-server, boost, sqlite, libspatialite
, luajit, geos, python3, zeromq }:
, luajit, geos39, python3, zeromq }:
stdenv.mkDerivation rec {
pname = "valhalla";
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [
zlib curl protobuf prime-server boost sqlite libspatialite
luajit geos python3 zeromq
luajit geos39 python3 zeromq
];
cmakeFlags = [
+2
View File
@@ -16890,6 +16890,8 @@ with pkgs;
geos = callPackage ../development/libraries/geos { };
geos39 = callPackage ../development/libraries/geos/3.9.nix { };
getdata = callPackage ../development/libraries/getdata { };
inherit (callPackages ../development/libraries/getdns { })