nixpkgs/pkgs/development/libraries/CGAL/default.nix

37 lines
802 B
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, cmake
, boost
, gmp
, mpfr
}:
stdenv.mkDerivation rec {
pname = "cgal";
2020-10-21 20:29:47 -07:00
version = "5.1";
2014-01-24 14:21:54 -08:00
2017-03-10 15:16:01 -08:00
src = fetchFromGitHub {
owner = "CGAL";
repo = "releases";
rev = "CGAL-${version}";
2020-10-21 20:29:47 -07:00
sha256 = "0rcv86hn5aqna7vr9nfk4np778qjr7l3742v58w6qw0z4y6l1km0";
};
# note: optional component libCGAL_ImageIO would need zlib and opengl;
# there are also libCGAL_Qt{3,4} omitted ATM
2017-03-10 15:16:01 -08:00
buildInputs = [ boost gmp mpfr ];
nativeBuildInputs = [ cmake ];
patches = [ ./cgal_path.patch ];
doCheck = false;
2014-01-24 14:21:54 -08:00
meta = with stdenv.lib; {
description = "Computational Geometry Algorithms Library";
2020-02-23 00:16:52 -08:00
homepage = "http://cgal.org";
2017-03-10 22:49:31 -08:00
license = with licenses; [ gpl3Plus lgpl3Plus];
platforms = platforms.all;
2014-01-24 14:21:54 -08:00
maintainers = [ maintainers.raskin ];
};
}