mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
6480e5cd8d
This change also removes unused `fetchpatch` function.
33 lines
718 B
Nix
33 lines
718 B
Nix
{ lib
|
|
, fetchurl
|
|
, stdenv
|
|
, testers
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "geos";
|
|
version = "3.11.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.osgeo.org/geos/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
|
|
hash = "sha256-sfB3ZpSBxaPmKv/EnpbrBvKBmHpdNv2rIlIX5bgl5Mw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
doCheck = true;
|
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
meta = with lib; {
|
|
description = "C++ port of the Java Topology Suite (JTS)";
|
|
homepage = "https://trac.osgeo.org/geos";
|
|
license = licenses.lgpl21Only;
|
|
pkgConfigModules = [ "geos" ];
|
|
maintainers = with lib.maintainers; [
|
|
willcohen
|
|
];
|
|
};
|
|
})
|