summary refs log blame commit diff
path: root/pkgs/development/libraries/CGAL/default.nix
blob: b8fd4af812ab623a812f7557fa0d832d382197a2 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                        

                         

                           
 
                  
                                                                            
                                                                    

    

                                                                        
                                         
                                        


                  
                           
                                                              
                               
                                                                          
                              
                                         

    
{ stdenv, fetchurl, cmake, boost, gmp, mpfr, mesa_glu }:

stdenv.mkDerivation rec {
  version = "4.7";
  name = "cgal-" + version;

  src = fetchurl {
    url = "https://github.com/CGAL/releases/archive/CGAL-${version}.tar.gz";
    sha256 = "1hbp4qpfqvpggvv79yxr6z3w7y0nwd31zavb1s57y55yl9z3zfxy";
  };

  # note: optional component libCGAL_ImageIO would need zlib and opengl;
  #   there are also libCGAL_Qt{3,4} omitted ATM
  buildInputs = [ cmake boost gmp mpfr ];
  #propagatedBuildInputs = [ mesa_glu ];

  doCheck = false;

  meta = with stdenv.lib; {
    description = "Computational Geometry Algorithms Library";
    homepage = http://cgal.org;
    license = licenses.gpl3Plus; # some parts are GPLv3+, some are LGPLv3+
    platforms = platforms.all;
    maintainers = [ maintainers.raskin ];
  };
}