1{ stdenv, fetchFromGitHub, cmake, boost, gmp, mpfr }:
2
3stdenv.mkDerivation rec {
4 version = "4.11";
5 name = "cgal-" + version;
6
7 src = fetchFromGitHub {
8 owner = "CGAL";
9 repo = "releases";
10 rev = "CGAL-${version}";
11 sha256 = "126r06aba5h8l73xmm5mwmxkir7sy122jn2j18cd4gz3z9p23npr";
12 };
13
14 # note: optional component libCGAL_ImageIO would need zlib and opengl;
15 # there are also libCGAL_Qt{3,4} omitted ATM
16 buildInputs = [ boost gmp mpfr ];
17 nativeBuildInputs = [ cmake ];
18
19 doCheck = false;
20
21 meta = with stdenv.lib; {
22 description = "Computational Geometry Algorithms Library";
23 homepage = http://cgal.org;
24 license = with licenses; [ gpl3Plus lgpl3Plus];
25 platforms = platforms.all;
26 maintainers = [ maintainers.raskin ];
27 };
28}