depot/third_party/nixpkgs/pkgs/by-name/sf/sfcgal/package.nix

45 lines
987 B
Nix

{
lib,
stdenv,
fetchFromGitLab,
cmake,
cgal,
boost,
mpfr,
gmp,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sfcgal";
version = "2.0.0";
src = fetchFromGitLab {
owner = "sfcgal";
repo = "SFCGAL";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-cx0QJCtAPR/WkWPpH+mZvq2803eDT7b+qlI5ma+CveE=";
};
buildInputs = [
cgal
boost
mpfr
gmp
];
nativeBuildInputs = [ cmake ];
patches = [
# https://gitlab.com/sfcgal/SFCGAL/-/merge_requests/384
./cmake-fix.patch
];
meta = {
description = "C++ wrapper library around CGAL with the aim of supporting ISO 191007:2013 and OGC Simple Features for 3D operations";
homepage = "https://sfcgal.gitlab.io/SFCGAL/";
changelog = "https://gitlab.com/sfcgal/SFCGAL/-/releases/v${finalAttrs.version}";
license = lib.licenses.lgpl2;
platforms = lib.platforms.linux;
maintainers = with lib; teams.geospatial.members ++ [ maintainers.fqidz ];
};
})