diff --git a/pkgs/development/libraries/CGAL/default.nix b/pkgs/development/libraries/CGAL/default.nix new file mode 100644 index 000000000000..49cf0a6b94bd --- /dev/null +++ b/pkgs/development/libraries/CGAL/default.nix @@ -0,0 +1,25 @@ +{stdenv, fetchurl, cmake, boost, gmp, mpfr + }: + +stdenv.mkDerivation rec { + version = "3.9"; + name = "cgal-${version}"; + src = fetchurl { + url = "https://gforge.inria.fr/frs/download.php/29125/CGAL-${version}.tar.gz"; + sha256 = "193vjhzlf7f2kw6dbg5yw8v0izdvmnrylqzqhw92vml7jjnr8494"; + }; + + buildInputs = [cmake boost gmp mpfr ]; + + doCheck = false; + + meta = { + description = "Computational Geometry Algorithms Library"; + homepage = "http://cgal.org/"; + platforms = with stdenv.lib.platforms; + linux; + maintainers = with stdenv.lib.maintainers; + [raskin]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3adecef8380d..d5fad876adb5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3266,6 +3266,8 @@ let celt = callPackage ../development/libraries/celt {}; celt_0_7 = callPackage ../development/libraries/celt/0.7.nix {}; + cgal = callPackage ../development/libraries/CGAL {}; + cgui = callPackage ../development/libraries/cgui {}; check = callPackage ../development/libraries/check { }; @@ -4411,6 +4413,8 @@ let opencascade = callPackage ../development/libraries/opencascade { }; + opencsg = callPackage ../development/libraries/opencsg { }; + openct = callPackage ../development/libraries/openct { }; opencv = callPackage ../development/libraries/opencv {