geos: Add meta.pkgConfigModules and test

This commit is contained in:
John Ericson 2023-02-11 08:55:46 -05:00
parent 36b6027957
commit 5df263bdc0
2 changed files with 20 additions and 8 deletions

View file

@ -1,11 +1,15 @@
{ lib, stdenv, fetchurl }:
{ lib
, stdenv
, fetchurl
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "geos";
version = "3.9.2";
src = fetchurl {
url = "https://download.osgeo.org/geos/${pname}-${version}.tar.bz2";
url = "https://download.osgeo.org/geos/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
sha256 = "sha256-RKWpviHX1HNDa/Yhwt3MPPWou+PHhuEyKWGKO52GEpc=";
};
@ -14,12 +18,15 @@ stdenv.mkDerivation rec {
# https://trac.osgeo.org/geos/ticket/993
configureFlags = lib.optional stdenv.isAarch32 "--disable-inline";
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
];
};
}
})

View file

@ -2,14 +2,16 @@
, stdenv
, fetchurl
, fetchpatch
, cmake }:
, cmake
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "geos";
version = "3.11.1";
src = fetchurl {
url = "https://download.osgeo.org/geos/${pname}-${version}.tar.bz2";
url = "https://download.osgeo.org/geos/${finalAttrs.pname}-${finalAttrs.version}.tar.bz2";
hash = "sha256-bQ6zz6n5LZR3Mcx18XUDVrO9/AfqAgVT2vavHHaOC+I=";
};
@ -17,12 +19,15 @@ stdenv.mkDerivation rec {
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
];
};
}
})