cgal: 4.14 -> 4.14.2, add (incompatible) cgal_5

This commit is contained in:
Michael Raskin 2019-12-07 12:03:59 +01:00
parent 4d9ccae632
commit 56dabf8cf2
3 changed files with 34 additions and 3 deletions

View File

@ -0,0 +1,28 @@
{ stdenv, fetchFromGitHub, cmake, boost, gmp, mpfr }:
stdenv.mkDerivation rec {
version = "4.14.2";
name = "cgal-" + version;
src = fetchFromGitHub {
owner = "CGAL";
repo = "releases";
rev = "CGAL-${version}";
sha256 = "1p1xyws2s9h2c8hlkz1af4ix48qma160av24by6lcm8al1g44pca";
};
# note: optional component libCGAL_ImageIO would need zlib and opengl;
# there are also libCGAL_Qt{3,4} omitted ATM
buildInputs = [ boost gmp mpfr ];
nativeBuildInputs = [ cmake ];
doCheck = false;
meta = with stdenv.lib; {
description = "Computational Geometry Algorithms Library";
homepage = http://cgal.org;
license = with licenses; [ gpl3Plus lgpl3Plus];
platforms = platforms.all;
maintainers = [ maintainers.raskin ];
};
}

View File

@ -1,14 +1,14 @@
{ stdenv, fetchFromGitHub, cmake, boost, gmp, mpfr }:
stdenv.mkDerivation rec {
version = "4.14";
version = "5.0";
name = "cgal-" + version;
src = fetchFromGitHub {
owner = "CGAL";
repo = "releases";
rev = "CGAL-${version}";
sha256 = "0p0s1dl5a261zwy0hxa7ylkypk45rwc6n84lx507dwdhfz4ihv12";
sha256 = "15r631kddphw3wsvrxrkdbq9y7m0q8kx0kwc9zq97x6ksg3v0gs3";
};
# note: optional component libCGAL_ImageIO would need zlib and opengl;

View File

@ -10872,7 +10872,10 @@ in
caf = callPackage ../development/libraries/caf {};
cgal = callPackage ../development/libraries/CGAL {};
# CGAL 5 has API changes
cgal_4 = callPackage ../development/libraries/CGAL/4.nix {};
cgal_5 = callPackage ../development/libraries/CGAL {};
cgal = cgal_4;
cgui = callPackage ../development/libraries/cgui {};