Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
callPackage,
|
|
fetchFromGitHub,
|
|
testers,
|
|
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "geos";
|
|
version = "3.13.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "libgeos";
|
|
repo = "geos";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-zPVP01AMIBKMnKi6Sq++CIaVZb5JA1v8/QAdGzKdL8Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
# https://github.com/libgeos/geos/issues/930
|
|
cmakeFlags = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [
|
|
"-DCMAKE_CTEST_ARGUMENTS=--exclude-regex;unit-geom-Envelope"
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
passthru.tests = {
|
|
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
geos = callPackage ./tests.nix { geos = finalAttrs.finalPackage; };
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "C/C++ library for computational geometry with a focus on algorithms used in geographic information systems (GIS) software";
|
|
homepage = "https://libgeos.org";
|
|
license = licenses.lgpl21Only;
|
|
mainProgram = "geosop";
|
|
teams = [ teams.geospatial ];
|
|
pkgConfigModules = [ "geos" ];
|
|
changelog = "https://github.com/libgeos/geos/releases/tag/${finalAttrs.finalPackage.version}";
|
|
};
|
|
})
|