2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2023-10-19 05:01:36 +00:00
|
|
|
, fetchurl
|
2019-10-21 00:56:34 +00:00
|
|
|
, cmake
|
|
|
|
, boost
|
|
|
|
, gmp
|
|
|
|
, mpfr
|
|
|
|
}:
|
2012-01-26 18:28:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-10-21 00:56:34 +00:00
|
|
|
pname = "cgal";
|
2024-11-01 08:05:15 +00:00
|
|
|
version = "5.6.2";
|
2014-01-24 22:21:54 +00:00
|
|
|
|
2023-10-19 05:01:36 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/CGAL/cgal/releases/download/v${version}/CGAL-${version}.tar.xz";
|
2024-11-01 08:05:15 +00:00
|
|
|
hash = "sha256-RY9g346PHy/a2TyPJOGqj0sJXMYaFPrIG5BoDXMGpC4=";
|
2012-01-26 18:28:53 +00:00
|
|
|
};
|
|
|
|
|
2015-08-17 06:25:52 +00:00
|
|
|
# note: optional component libCGAL_ImageIO would need zlib and opengl;
|
|
|
|
# there are also libCGAL_Qt{3,4} omitted ATM
|
2017-03-10 23:16:01 +00:00
|
|
|
buildInputs = [ boost gmp mpfr ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2012-01-26 18:28:53 +00:00
|
|
|
|
2019-10-21 00:56:34 +00:00
|
|
|
patches = [ ./cgal_path.patch ];
|
|
|
|
|
2012-01-26 18:28:53 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2012-01-26 18:28:53 +00:00
|
|
|
description = "Computational Geometry Algorithms Library";
|
2020-02-23 08:16:52 +00:00
|
|
|
homepage = "http://cgal.org";
|
2017-03-11 06:49:31 +00:00
|
|
|
license = with licenses; [ gpl3Plus lgpl3Plus];
|
2015-11-11 12:09:26 +00:00
|
|
|
platforms = platforms.all;
|
2014-01-24 22:21:54 +00:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2012-01-26 18:28:53 +00:00
|
|
|
};
|
|
|
|
}
|