mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
46 lines
995 B
Nix
46 lines
995 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clipper2";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AngusJohnson";
|
|
repo = "Clipper2";
|
|
rev = "Clipper2_${version}";
|
|
hash = "sha256-ASL9uKkXsWyIbD1qaKEL7gf/JuCqzZQZSKHwLT5dKJU=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/CPP";
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DCLIPPER2_EXAMPLES=OFF"
|
|
"-DCLIPPER2_TESTS=OFF"
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
];
|
|
|
|
patches = [
|
|
./0001-fix-pc-paths.patch
|
|
];
|
|
|
|
meta = {
|
|
description = "Polygon Clipping and Offsetting - C++ Only";
|
|
longDescription = ''
|
|
The Clipper2 library performs intersection, union, difference and XOR boolean operations on both simple and
|
|
complex polygons. It also performs polygon offsetting.
|
|
'';
|
|
homepage = "https://github.com/AngusJohnson/Clipper2";
|
|
license = lib.licenses.boost;
|
|
maintainers = [ lib.maintainers.cadkin ];
|
|
platforms = lib.platforms.all;
|
|
};
|
|
}
|