nixpkgs/pkgs/development/libraries/geos/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
640 B
Nix
Raw Normal View History

2022-03-22 20:03:34 +00:00
{ lib
, stdenv
, fetchurl
, cmake }:
2017-01-17 04:07:11 +00:00
stdenv.mkDerivation rec {
2021-02-27 17:51:17 +00:00
pname = "geos";
2022-03-22 20:03:34 +00:00
version = "3.10.2";
src = fetchurl {
2021-02-27 17:51:17 +00:00
url = "https://download.osgeo.org/geos/${pname}-${version}.tar.bz2";
2022-03-22 20:03:34 +00:00
sha256 = "sha256-ULvFmaw4a0wrOWLcxBHwBAph8gSq7066ciXs3Qz0VxU=";
};
2022-03-22 20:03:34 +00:00
nativeBuildInputs = [ cmake ];
2022-03-22 20:03:34 +00:00
postPatch = ''
substituteInPlace tools/geos-config.in \
--replace "@libdir@" "@prefix@/lib" \
--replace "@includedir@" "@prefix@/include"
'';
2020-08-08 17:12:13 +00:00
meta = with lib; {
description = "C++ port of the Java Topology Suite (JTS)";
homepage = "https://trac.osgeo.org/geos";
2021-02-27 17:51:17 +00:00
license = licenses.lgpl21Only;
};
}