Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 34 lines 808 B view raw
1{ lib, stdenv 2, fetchurl 3, cmake 4, boost 5, gmp 6, mpfr 7}: 8 9stdenv.mkDerivation rec { 10 pname = "cgal"; 11 version = "5.6.1"; 12 13 src = fetchurl { 14 url = "https://github.com/CGAL/cgal/releases/download/v${version}/CGAL-${version}.tar.xz"; 15 hash = "sha256-zbFefuMeBmNYnTEHp5mIo3t7FxnfPSTyBYVF0bzdWDc="; 16 }; 17 18 # note: optional component libCGAL_ImageIO would need zlib and opengl; 19 # there are also libCGAL_Qt{3,4} omitted ATM 20 buildInputs = [ boost gmp mpfr ]; 21 nativeBuildInputs = [ cmake ]; 22 23 patches = [ ./cgal_path.patch ]; 24 25 doCheck = false; 26 27 meta = with lib; { 28 description = "Computational Geometry Algorithms Library"; 29 homepage = "http://cgal.org"; 30 license = with licenses; [ gpl3Plus lgpl3Plus]; 31 platforms = platforms.all; 32 maintainers = [ maintainers.raskin ]; 33 }; 34}