diff --git a/pkgs/by-name/cg/cgal/package.nix b/pkgs/by-name/cg/cgal/package.nix index 8ccae7b37b7e..e475e253adeb 100644 --- a/pkgs/by-name/cg/cgal/package.nix +++ b/pkgs/by-name/cg/cgal/package.nix @@ -6,6 +6,7 @@ boost, gmp, mpfr, + testers, }: stdenv.mkDerivation (finalAttrs: { @@ -17,19 +18,32 @@ stdenv.mkDerivation (finalAttrs: { sha256 = "sha256-8wxb58JaKj6iS8y6q1z2P6/aY8AnnzTX5/izISgh/tY="; }; + patches = [ ./cgal_path.patch ]; + + nativeBuildInputs = [ cmake ]; + # note: optional component libCGAL_ImageIO would need zlib and opengl; # there are also libCGAL_Qt{3,4} omitted ATM buildInputs = [ - boost gmp mpfr ]; - nativeBuildInputs = [ cmake ]; - patches = [ ./cgal_path.patch ]; + propagatedBuildInputs = [ + boost + ]; doCheck = false; + passthru = { + tests = { + cmake-config = testers.hasCmakeConfigModules { + moduleNames = [ "CGAL" ]; + package = finalAttrs.finalPackage; + }; + }; + }; + meta = { description = "Computational Geometry Algorithms Library"; homepage = "http://cgal.org";