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

37 lines
792 B
Nix
Raw Normal View History

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