2018-03-18 13:40:14 +01:00
|
|
|
{ stdenv, fetchurl, cmake, ninja, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.4.2";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "Clipper";
|
2018-03-18 13:40:14 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/polyclipping/clipper_ver${version}.zip";
|
|
|
|
sha256 = "09q6jc5k7p9y5d75qr2na5d1gm0wly5cjnffh127r04l47c20hx1";
|
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "cpp";
|
|
|
|
|
|
|
|
buildInputs = [ ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ninja unzip ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-11-17 10:41:21 +01:00
|
|
|
description = "A polygon and line clipping and offsetting library (C++, C#, Delphi)";
|
2018-03-18 13:40:14 +01:00
|
|
|
longDescription = ''
|
|
|
|
The Clipper library performs line & polygon clipping - intersection, union, difference & exclusive-or,
|
|
|
|
and line & polygon offsetting. The library is based on Vatti's clipping algorithm.
|
|
|
|
'';
|
2019-11-17 10:41:21 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/polyclipping";
|
2018-03-18 13:40:14 +01:00
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ mpickering ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|