git.iko.soy/typeable/nixpkgs
on master help sign in
slic3r: patch to fix compile error if Boost > 1.55
commit4692b6e320abdd30b550a0e5a6a57ebc17b9a58f authorMarcus Boyd <mwb@geosol.com.au> dateWed 27 Nov 2019, 11:20 (7 years ago) parente237d88
2 files changed+19−2
pkgs/applications/misc/slic3r/boost-compile-error.patch+12 pkgs/applications/misc/slic3r/default.nix+7−2
pkgs/applications/misc/slic3r/boost-compile-error.patchnew file+12
@@ -0,0 +1,12 @@
1+diff --git a/xs/src/libslic3r/GCodeSender.hpp b/xs/src/libslic3r/GCodeSender.hpp
2+index cc0b2983..0f39f5a3 100644
3+--- a/xs/src/libslic3r/GCodeSender.hpp
4++++ b/xs/src/libslic3r/GCodeSender.hpp
5+@@ -9,6 +9,7 @@
6+ #include <boost/asio.hpp>
7+ #include <boost/bind.hpp>
8+ #include <boost/thread.hpp>
9++#include <boost/core/noncopyable.hpp>
10+
11+ namespace Slic3r {
12+
pkgs/applications/misc/slic3r/default.nix+7−2
@@ -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