at 23.11-beta 26 lines 886 B view raw
1{ lib, stdenv, fetchurl, cmake, ninja, unzip }: 2 3stdenv.mkDerivation rec { 4 version = "6.4.2"; 5 pname = "Clipper"; 6 src = fetchurl { 7 url = "mirror://sourceforge/polyclipping/clipper_ver${version}.zip"; 8 sha256 = "09q6jc5k7p9y5d75qr2na5d1gm0wly5cjnffh127r04l47c20hx1"; 9 }; 10 11 sourceRoot = "cpp"; 12 13 nativeBuildInputs = [ cmake ninja unzip ]; 14 15 meta = with lib; { 16 description = "A polygon and line clipping and offsetting library (C++, C#, Delphi)"; 17 longDescription = '' 18 The Clipper library performs line & polygon clipping - intersection, union, difference & exclusive-or, 19 and line & polygon offsetting. The library is based on Vatti's clipping algorithm. 20 ''; 21 homepage = "https://sourceforge.net/projects/polyclipping"; 22 license = licenses.boost; 23 maintainers = with maintainers; [ mpickering ]; 24 platforms = with platforms; unix; 25 }; 26}