nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv
2, fetchFromGitHub
3, cmake
4, boost
5, gmp
6, mpfr
7}:
8
9stdenv.mkDerivation rec {
10 pname = "cgal";
11 version = "5.5.2";
12
13 src = fetchFromGitHub {
14 owner = "CGAL";
15 repo = "releases";
16 rev = "CGAL-${version}";
17 sha256 = "sha256-olMPT/8Q0bf+rooJoNc0k8NrO//O7z0yqBoP8KX39yQ=";
18 };
19
20 # note: optional component libCGAL_ImageIO would need zlib and opengl;
21 # there are also libCGAL_Qt{3,4} omitted ATM
22 buildInputs = [ boost gmp mpfr ];
23 nativeBuildInputs = [ cmake ];
24
25 patches = [ ./cgal_path.patch ];
26
27 doCheck = false;
28
29 meta = with lib; {
30 description = "Computational Geometry Algorithms Library";
31 homepage = "http://cgal.org";
32 license = with licenses; [ gpl3Plus lgpl3Plus];
33 platforms = platforms.all;
34 maintainers = [ maintainers.raskin ];
35 };
36}