2021-01-21 18:00:13 +01:00
|
|
|
{ lib, stdenv
|
2019-10-21 02:56:34 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, boost
|
|
|
|
, gmp
|
|
|
|
, mpfr
|
|
|
|
}:
|
2012-01-26 19:28:53 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-10-21 02:56:34 +02:00
|
|
|
pname = "cgal";
|
2022-10-21 08:50:44 +02:00
|
|
|
version = "5.5.1";
|
2014-01-24 23:21:54 +01:00
|
|
|
|
2017-03-11 00:16:01 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CGAL";
|
|
|
|
repo = "releases";
|
|
|
|
rev = "CGAL-${version}";
|
2022-10-21 08:50:44 +02:00
|
|
|
sha256 = "sha256-ISmuxvCLb2ueG3FeBzJ7R+LievfXefG3ZQbyAboIv+A=";
|
2012-01-26 19:28:53 +01:00
|
|
|
};
|
|
|
|
|
2015-08-17 08:25:52 +02:00
|
|
|
# note: optional component libCGAL_ImageIO would need zlib and opengl;
|
|
|
|
# there are also libCGAL_Qt{3,4} omitted ATM
|
2017-03-11 00:16:01 +01:00
|
|
|
buildInputs = [ boost gmp mpfr ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2012-01-26 19:28:53 +01:00
|
|
|
|
2019-10-21 02:56:34 +02:00
|
|
|
patches = [ ./cgal_path.patch ];
|
|
|
|
|
2012-01-26 19:28:53 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2012-01-26 19:28:53 +01:00
|
|
|
description = "Computational Geometry Algorithms Library";
|
2020-02-23 09:16:52 +01:00
|
|
|
homepage = "http://cgal.org";
|
2017-03-11 07:49:31 +01:00
|
|
|
license = with licenses; [ gpl3Plus lgpl3Plus];
|
2015-11-11 13:09:26 +01:00
|
|
|
platforms = platforms.all;
|
2014-01-24 23:21:54 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2012-01-26 19:28:53 +01:00
|
|
|
};
|
|
|
|
}
|