nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 45 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 nix-update-script, 7}: 8 9stdenv.mkDerivation (finalAttrs: { 10 pname = "clipper2"; 11 version = "1.5.4"; 12 13 src = fetchFromGitHub { 14 owner = "AngusJohnson"; 15 repo = "Clipper2"; 16 rev = "Clipper2_${finalAttrs.version}"; 17 hash = "sha256-2vZXxT5hISz2xbWbvYNGTrq9QovTjNwUK103iVtz8ok="; 18 }; 19 20 sourceRoot = "${finalAttrs.src.name}/CPP"; 21 22 nativeBuildInputs = [ 23 cmake 24 ]; 25 26 cmakeFlags = [ 27 "-DCLIPPER2_EXAMPLES=OFF" 28 "-DCLIPPER2_TESTS=OFF" 29 "-DBUILD_SHARED_LIBS=ON" 30 ]; 31 32 passthru.updateScript = nix-update-script { }; 33 34 meta = { 35 description = "Polygon Clipping and Offsetting - C++ Only"; 36 longDescription = '' 37 The Clipper2 library performs intersection, union, difference and XOR boolean operations on both simple and 38 complex polygons. It also performs polygon offsetting. 39 ''; 40 homepage = "https://github.com/AngusJohnson/Clipper2"; 41 license = lib.licenses.boost; 42 maintainers = [ lib.maintainers.cadkin ]; 43 platforms = lib.platforms.all; 44 }; 45})