Skip to content

Commit a0b2f3b

Browse files
authored
bambu-studio: 01.09.00.70 -> 01.09.07.52 (#348091)
2 parents 85455bb + 4117c7f commit a0b2f3b

File tree

9 files changed

+69
-49
lines changed

9 files changed

+69
-49
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5868,6 +5868,12 @@
58685868
githubId = 1931963;
58695869
name = "David Sferruzza";
58705870
};
5871+
dsluijk = {
5872+
name = "Dany Sluijk";
5873+
email = "[email protected]";
5874+
github = "dsluijk";
5875+
githubId = 8537327;
5876+
};
58715877
dstengele = {
58725878
name = "Dennis Stengele";
58735879
email = "[email protected]";

pkgs/applications/misc/bambu-studio/default.nix

Lines changed: 39 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@
2222
glib,
2323
glib-networking,
2424
gmp,
25-
gstreamer,
26-
gst-plugins-base,
27-
gst-plugins-bad,
28-
gst-plugins-good,
25+
gst_all_1,
2926
gtest,
3027
gtk3,
3128
hicolor-icon-theme,
@@ -36,6 +33,7 @@
3633
nlopt,
3734
opencascade-occt_7_6,
3835
openvdb,
36+
opencv,
3937
pcre,
4038
systemd,
4139
tbb_2021_11,
@@ -45,14 +43,20 @@
4543
withSystemd ? stdenv.hostPlatform.isLinux,
4644
}:
4745
let
48-
opencascade-occt = opencascade-occt_7_6;
49-
wxGTK31' = wxGTK31.overrideAttrs (old: {
50-
configureFlags = old.configureFlags ++ [
51-
# Disable noisy debug dialogs
52-
"--enable-debug=no"
53-
];
54-
});
55-
openvdb_tbb_2021_8 = openvdb.overrideAttrs (old: {
46+
wxGTK' =
47+
(wxGTK31.override {
48+
withCurl = true;
49+
withPrivateFonts = true;
50+
withWebKit = true;
51+
}).overrideAttrs
52+
(old: {
53+
configureFlags = old.configureFlags ++ [
54+
# Disable noisy debug dialogs
55+
"--enable-debug=no"
56+
];
57+
});
58+
59+
openvdb' = openvdb.overrideAttrs (old: {
5660
buildInputs = [
5761
openexr
5862
boost179
@@ -65,13 +69,13 @@ let
6569
in
6670
stdenv.mkDerivation rec {
6771
pname = "bambu-studio";
68-
version = "01.09.00.70";
72+
version = "01.09.07.52";
6973

7074
src = fetchFromGitHub {
7175
owner = "bambulab";
7276
repo = "BambuStudio";
7377
rev = "v${version}";
74-
hash = "sha256-RBctBhKo7mjxsP7OJhGfoU1eIiGVuMiAqwwSU+gsMds=";
78+
hash = "sha256-fhH4N29P/ysdHHbZt+FnBl3+QtTNhbVE3j4ZnFJyJH0=";
7579
};
7680

7781
nativeBuildInputs = [
@@ -95,31 +99,34 @@ stdenv.mkDerivation rec {
9599
glib
96100
glib-networking
97101
gmp
98-
gstreamer
99-
gst-plugins-base
100-
gst-plugins-bad
101-
gst-plugins-good
102+
gst_all_1.gstreamer
103+
gst_all_1.gst-plugins-base
104+
gst_all_1.gst-plugins-bad
105+
gst_all_1.gst-plugins-good
102106
gtk3
103107
hicolor-icon-theme
104108
ilmbase
105109
libpng
106110
mesa.osmesa
107111
mpfr
108112
nlopt
109-
opencascade-occt
110-
openvdb_tbb_2021_8
113+
opencascade-occt_7_6
114+
openvdb'
111115
pcre
112116
tbb_2021_11
113117
webkitgtk_4_0
114-
wxGTK31'
118+
wxGTK'
115119
xorg.libX11
120+
opencv
116121
] ++ lib.optionals withSystemd [ systemd ] ++ checkInputs;
117122

118123
patches = [
119124
# Fix for webkitgtk linking
120-
./0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
125+
./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
121126
# Fix build with cgal-5.6.1+
122-
./meshboolean-const.patch
127+
./patches/meshboolean-const.patch
128+
# Fix an issue with
129+
./patches/dont-link-opencv-world-bambu.patch
123130
];
124131

125132
doCheck = true;
@@ -136,7 +143,10 @@ stdenv.mkDerivation rec {
136143
# Disable compiler warnings that clutter the build log.
137144
# It seems to be a known issue for Eigen:
138145
# http://eigen.tuxfamily.org/bz/show_bug.cgi?id=1221
139-
NIX_CFLAGS_COMPILE = "-Wno-ignored-attributes";
146+
NIX_CFLAGS_COMPILE = toString [
147+
"-Wno-ignored-attributes"
148+
"-I${opencv.out}/include/opencv4"
149+
];
140150

141151
# prusa-slicer uses dlopen on `libudev.so` at runtime
142152
NIX_LDFLAGS = lib.optionalString withSystemd "-ludev";
@@ -181,8 +191,12 @@ stdenv.mkDerivation rec {
181191
meta = with lib; {
182192
description = "PC Software for BambuLab's 3D printers";
183193
homepage = "https://github.com/bambulab/BambuStudio";
194+
changelog = "https://github.com/bambulab/BambuStudio/releases/tag/v${version}";
184195
license = licenses.agpl3Plus;
185-
maintainers = with maintainers; [ zhaofengli ];
196+
maintainers = with maintainers; [
197+
zhaofengli
198+
dsluijk
199+
];
186200
mainProgram = "bambu-studio";
187201
platforms = platforms.linux;
188202
};

pkgs/applications/misc/bambu-studio/orca-slicer.nix

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
lib,
33
fetchFromGitHub,
44
bambu-studio,
5-
opencv,
65
}:
76
bambu-studio.overrideAttrs (
87
finalAttrs: previousAttrs: {
@@ -16,20 +15,15 @@ bambu-studio.overrideAttrs (
1615
hash = "sha256-7fusdSYpZb4sYl5L/+81PzMd42Nsejj+kCZsq0f7eIk=";
1716
};
1817

19-
patches =
20-
previousAttrs.patches
21-
++ [
22-
# FIXME: only required for 2.1.1, can be removed in the next version
23-
./0002-fix-build-for-gcc-13.diff
24-
25-
./dont-link-opencv-world.patch
26-
];
27-
28-
buildInputs =
29-
previousAttrs.buildInputs
30-
++ [
31-
opencv
32-
];
18+
patches =[
19+
# FIXME: only required for 2.1.1, can be removed in the next version
20+
./patches/0002-fix-build-for-gcc-13.diff
21+
# Fix for webkitgtk linking
22+
./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
23+
# Fix build with cgal-5.6.1+
24+
./patches/meshboolean-const.patch
25+
./patches/dont-link-opencv-world-orca.patch
26+
];
3327

3428
preFixup = ''
3529
gappsWrapperArgs+=(
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/src/libslic3r/CMakeLists.txt b/src/libslic3r/CMakeLists.txt
2+
index 2cdc525..44e6602 100644
3+
--- a/src/libslic3r/CMakeLists.txt
4+
+++ b/src/libslic3r/CMakeLists.txt
5+
@@ -533,7 +533,8 @@ target_link_libraries(libslic3r
6+
${OCCT_LIBS}
7+
Clipper2
8+
mcut
9+
- opencv_world
10+
+ opencv_core
11+
+ opencv_imgproc
12+
)
13+
14+
if(NOT WIN32)

pkgs/top-level/all-packages.nix

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32342,15 +32342,7 @@ with pkgs;
3234232342

3234332343
super-slicer-latest = super-slicer.latest;
3234432344

32345-
bambu-studio = callPackage ../applications/misc/bambu-studio {
32346-
inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-bad gst-plugins-good;
32347-
32348-
wxGTK31 = wxGTK31.override {
32349-
withCurl = true;
32350-
withPrivateFonts = true;
32351-
withWebKit = true;
32352-
};
32353-
};
32345+
bambu-studio = callPackage ../applications/misc/bambu-studio { };
3235432346

3235532347
orca-slicer = callPackage ../applications/misc/bambu-studio/orca-slicer.nix {};
3235632348

0 commit comments

Comments
 (0)