python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / CGAL / 4.nix
blob9c0305ec077db7cd50a3931f4931d986426bff58
1 { lib, stdenv, fetchFromGitHub, fetchpatch, cmake, boost, gmp, mpfr }:
3 stdenv.mkDerivation rec {
4   version = "4.14.2";
5   pname = "cgal";
7   src = fetchFromGitHub {
8     owner = "CGAL";
9     repo = "releases";
10     rev = "CGAL-${version}";
11     sha256 = "1p1xyws2s9h2c8hlkz1af4ix48qma160av24by6lcm8al1g44pca";
12   };
14   patches = [
16     # Pull upstream fix for c++17 (gcc-12):
17     #  https://github.com/CGAL/cgal/pull/6109
18     (fetchpatch {
19       name = "gcc-12-prereq.patch";
20       url = "https://github.com/CGAL/cgal/commit/4581f1b7a8e97d1a136830e64b77cdae3546c4bf.patch";
21       relative = "CGAL_Core"; # Upstream slightly reordered directory structure since.
22       sha256 = "sha256-4+7mzGSBwAv5RHBQPAecPPKNN/LQBgvYq5mq+fHAteo=";
23     })
24     (fetchpatch {
25       name = "gcc-12.patch";
26       url = "https://github.com/CGAL/cgal/commit/6680a6e6f994b2c5b9f068eb3014d12ee1134d53.patch";
27       relative = "CGAL_Core"; # Upstream slightly reordered directory structure since.
28       sha256 = "sha256-8kxJDT47jXI9kQNFI/ARWl9JBNS4AfU57/D0tYlgW0M=";
29     })
30   ];
32   # note: optional component libCGAL_ImageIO would need zlib and opengl;
33   #   there are also libCGAL_Qt{3,4} omitted ATM
34   buildInputs = [ boost gmp mpfr ];
35   nativeBuildInputs = [ cmake ];
37   doCheck = false;
39   meta = with lib; {
40     description = "Computational Geometry Algorithms Library";
41     homepage = "http://cgal.org";
42     license = with licenses; [ gpl3Plus lgpl3Plus];
43     platforms = platforms.all;
44     maintainers = [ maintainers.raskin ];
45   };