Merge pull request #189409 from sikmir/libspatialindex
libspatialindex: 1.8.5 → 1.9.3
This commit is contained in:
commit
96cce9c136
1 changed files with 29 additions and 12 deletions
|
@ -1,20 +1,37 @@
|
||||||
{ lib, stdenv, fetchurl }:
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "libspatialindex";
|
pname = "libspatialindex";
|
||||||
version = "1.8.5";
|
version = "1.9.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://download.osgeo.org/libspatialindex/spatialindex-src-${version}.tar.gz";
|
owner = "libspatialindex";
|
||||||
sha256 = "1vxzm7kczwnb6qdmc0hb00z8ykx11zk3sb68gc7rch4vrfi4dakw";
|
repo = "libspatialindex";
|
||||||
|
rev = finalAttrs.version;
|
||||||
|
hash = "sha256-zsvS0IkCXyuNLCQpccKdAsFKoq0l+y66ifXlTHLNTkc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
patches = [
|
||||||
|
# Allow building static libs
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fix-static-lib-build.patch";
|
||||||
|
url = "https://github.com/libspatialindex/libspatialindex/commit/caee28d84685071da3ff3a4ea57ff0b6ae64fc87.patch";
|
||||||
|
hash = "sha256-nvTW/t9tw1ZLeycJY8nj7rQgZogxQb765Ca2b9NDvRo=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
meta = {
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DSIDX_BUILD_TESTS=${if finalAttrs.doCheck then "ON" else "OFF"}"
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "Extensible spatial index library in C++";
|
description = "Extensible spatial index library in C++";
|
||||||
homepage = "http://libspatialindex.github.io/";
|
homepage = "https://libspatialindex.org";
|
||||||
license = lib.licenses.mit;
|
license = licenses.mit;
|
||||||
platforms = lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue