15 # This revision is waiting to be merged upstream
16 # Once it has been merged, this should be switched to it
17 # Upstream PR: https://github.com/tamasmeszaros/libnest2d/pull/18
18 src = fetchFromGitHub {
21 rev = "31391fd173249ad9b906390058e13b09238fadc8";
22 sha256 = "1hzqi4z55x76rss3xk7hfqhy9hcaq2jaav5jqxa1aqmbvarr2gla";
26 substituteInPlace {,examples/}CMakeLists.txt \
27 --replace "set(CMAKE_CXX_STANDARD 11)" "set(CMAKE_CXX_STANDARD 14)"
30 propagatedBuildInputs = [
35 nativeBuildInputs = [ cmake ];
37 CLIPPER_PATH = "${clipper.out}";
38 cmakeFlags = [ "-DLIBNEST2D_HEADER_ONLY=OFF" ];
41 description = "2D irregular bin packaging and nesting library written in modern C++";
42 homepage = "https://github.com/Ultimaker/libnest2d";
43 license = licenses.lgpl3;
44 platforms = platforms.all;