2016-04-17 02:44:48 +03:00
|
|
|
{ stdenv, fetchurl, cmake, boost, gmp, mpfr, mesa_glu }:
|
2012-01-26 22:28:53 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-11-11 15:09:26 +03:00
|
|
|
version = "4.7";
|
|
|
|
name = "cgal-" + version;
|
2014-01-25 02:21:54 +04:00
|
|
|
|
2012-01-26 22:28:53 +04:00
|
|
|
src = fetchurl {
|
2015-08-17 09:25:52 +03:00
|
|
|
url = "https://github.com/CGAL/releases/archive/CGAL-${version}.tar.gz";
|
2015-11-11 15:09:26 +03:00
|
|
|
sha256 = "1hbp4qpfqvpggvv79yxr6z3w7y0nwd31zavb1s57y55yl9z3zfxy";
|
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
|
2014-10-01 23:55:40 +04:00
|
|
|
buildInputs = [ cmake boost gmp mpfr ];
|
2016-04-17 02:44:48 +03:00
|
|
|
#propagatedBuildInputs = [ mesa_glu ];
|
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;
|
2014-01-25 02:21:54 +04:00
|
|
|
license = licenses.gpl3Plus; # some parts are GPLv3+, some are LGPLv3+
|
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
|
|
|
};
|
|
|
|
}
|