@@ -1,5 +1,5 @@
1−{ stdenv, fetchgit, perl, makeWrapper, makeDesktopItem
2−, which, perlPackages, boost
1+{ lib, stdenv, fetchgit, perl, makeWrapper
2+, makeDesktopItem, which, perlPackages, boost
33}:
44
55stdenv.mkDerivation rec {
@@ -40,6 +40,11 @@ stdenv.mkDerivation rec {
4040 sed -i 's|"/usr/include/asm-generic/ioctls.h"|<asm-generic/ioctls.h>|g' xs/src/libslic3r/GCodeSender.cpp
4141 '';
4242
43+ # note the boost-compile-error is fixed in
44+ # https://github.com/slic3r/Slic3r/commit/90f108ae8e7a4315f82e317f2141733418d86a68
45+ # this patch can be probably be removed in the next version after 1.3.0
46+ patches = lib.optional (lib.versionAtLeast boost.version "1.56.0") ./boost-compile-error.patch;
47+
4348 buildPhase = ''
4449 export SLIC3R_NO_AUTO=true
4550 export LD=$CXX