2017-03-11 09:49:31 +03:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost, gmp, mpfr }:
|
2012-01-26 22:28:53 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-12-07 14:03:59 +03:00
|
|
|
version = "5.0";
|
2015-11-11 15:09:26 +03:00
|
|
|
name = "cgal-" + version;
|
2014-01-25 02:21:54 +04:00
|
|
|
|
2017-03-11 02:16:01 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CGAL";
|
|
|
|
repo = "releases";
|
|
|
|
rev = "CGAL-${version}";
|
2019-12-07 14:03:59 +03:00
|
|
|
sha256 = "15r631kddphw3wsvrxrkdbq9y7m0q8kx0kwc9zq97x6ksg3v0gs3";
|
2012-01-26 22:28:53 +04:00
|
|
|
};
|
|
|
|
|
2015-08-17 09:25:52 +03:00
|
|
|
# note: optional component libCGAL_ImageIO would need zlib and opengl;
|
|
|
|
# there are also libCGAL_Qt{3,4} omitted ATM
|
2017-03-11 02:16:01 +03:00
|
|
|
buildInputs = [ boost gmp mpfr ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2012-01-26 22:28:53 +04:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2014-01-25 02:21:54 +04:00
|
|
|
meta = with stdenv.lib; {
|
2012-01-26 22:28:53 +04:00
|
|
|
description = "Computational Geometry Algorithms Library";
|
2015-11-11 15:09:26 +03:00
|
|
|
homepage = http://cgal.org;
|
2017-03-11 09:49:31 +03:00
|
|
|
license = with licenses; [ gpl3Plus lgpl3Plus];
|
2015-11-11 15:09:26 +03:00
|
|
|
platforms = platforms.all;
|
2014-01-25 02:21:54 +04:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2012-01-26 22:28:53 +04:00
|
|
|
};
|
|
|
|
}
|