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