tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
slic3r: unpin boost172
Weijia Wang
2 years ago
20933bf3
ac6d8999
+16
-20
3 changed files
expand all
collapse all
unified
split
pkgs
applications
misc
slic3r
boost-compile-error.patch
default.nix
top-level
all-packages.nix
-12
pkgs/applications/misc/slic3r/boost-compile-error.patch
···
1
1
-
diff --git a/xs/src/libslic3r/GCodeSender.hpp b/xs/src/libslic3r/GCodeSender.hpp
2
2
-
index cc0b2983..0f39f5a3 100644
3
3
-
--- a/xs/src/libslic3r/GCodeSender.hpp
4
4
-
+++ b/xs/src/libslic3r/GCodeSender.hpp
5
5
-
@@ -9,6 +9,7 @@
6
6
-
#include <boost/asio.hpp>
7
7
-
#include <boost/bind.hpp>
8
8
-
#include <boost/thread.hpp>
9
9
-
+#include <boost/core/noncopyable.hpp>
10
10
-
11
11
-
namespace Slic3r {
12
12
-
+15
-5
pkgs/applications/misc/slic3r/default.nix
···
1
1
-
{ lib, stdenv, fetchFromGitHub, perl, makeWrapper
1
1
+
{ lib, stdenv, fetchFromGitHub, fetchpatch, perl, makeWrapper
2
2
, makeDesktopItem, which, perlPackages, boost, wrapGAppsHook
3
3
}:
4
4
···
42
42
sed -i 's|"/usr/include/asm-generic/ioctls.h"|<asm-generic/ioctls.h>|g' xs/src/libslic3r/GCodeSender.cpp
43
43
'';
44
44
45
45
-
# note the boost-compile-error is fixed in
46
46
-
# https://github.com/slic3r/Slic3r/commit/90f108ae8e7a4315f82e317f2141733418d86a68
47
47
-
# this patch can be probably be removed in the next version after 1.3.0
48
48
-
patches = lib.optional (lib.versionAtLeast boost.version "1.56.0") ./boost-compile-error.patch;
45
45
+
patches = [
46
46
+
(fetchpatch {
47
47
+
url = "https://web.archive.org/web/20230606220657if_/https://sources.debian.org/data/main/s/slic3r/1.3.0%2Bdfsg1-5/debian/patches/Drop-error-admesh-works-correctly-on-little-endian-machin.patch";
48
48
+
hash = "sha256-+F94jzMFBdI++SKgyEZTBaHFVbjxWwgJa8YVbpK0euI=";
49
49
+
})
50
50
+
(fetchpatch {
51
51
+
url = "https://web.archive.org/web/20230606220036if_/https://sources.debian.org/data/main/s/slic3r/1.3.0+dfsg1-5/debian/patches/0006-Fix-FTBFS-with-Boost-1.71.patch";
52
52
+
hash = "sha256-4jvNccttig5YI1hXSANAWxVz6C4+kowlacMXVCpFgOo=";
53
53
+
})
54
54
+
(fetchpatch {
55
55
+
url = "https://web.archive.org/web/20230606220054if_/https://sources.debian.org/data/main/s/slic3r/1.3.0+dfsg1-5/debian/patches/fix_boost_174.patch";
56
56
+
hash = "sha256-aSmxc2htmrla9l/DIRWeKdBW0LTV96wMUZSLLNjgbzY=";
57
57
+
})
58
58
+
];
49
59
50
60
buildPhase = ''
51
61
export SLIC3R_NO_AUTO=true
+1
-3
pkgs/top-level/all-packages.nix
···
34329
34329
34330
34330
ly = callPackage ../applications/display-managers/ly { };
34331
34331
34332
34332
-
slic3r = callPackage ../applications/misc/slic3r {
34333
34333
-
boost = boost172; # Building fails with Boost >1.72 due to boost/detail/endian.hpp missing
34334
34334
-
};
34332
34332
+
slic3r = callPackage ../applications/misc/slic3r { };
34335
34333
34336
34334
curaengine_stable = callPackage ../applications/misc/curaengine/stable.nix { };
34337
34335