Skip to content

Commit 18fcf07

Browse files
committed
bambu-studio: 01.09.00.70 -> 01.09.07.52
1 parent c55e1ef commit 18fcf07

File tree

9 files changed

+67
-50
lines changed

9 files changed

+67
-50
lines changed

maintainers/maintainer-list.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5781,6 +5781,12 @@
57815781
githubId = 1931963;
57825782
name = "David Sferruzza";
57835783
};
5784+
dsluijk = {
5785+
name = "Dany Sluijk";
5786+
email = "[email protected]";
5787+
github = "dsluijk";
5788+
githubId = 8537327;
5789+
};
57845790
dstengele = {
57855791
name = "Dennis Stengele";
57865792
email = "[email protected]";

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

Lines changed: 37 additions & 27 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,23 +33,29 @@
3633
nlopt,
3734
opencascade-occt_7_6,
3835
openvdb,
36+
opencv,
3937
pcre,
4038
systemd,
4139
tbb_2021_11,
42-
webkitgtk_4_0,
40+
webkitgtk,
4341
wxGTK31,
4442
xorg,
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' = (wxGTK31.override {
47+
withCurl = true;
48+
withPrivateFonts = true;
49+
withWebKit = true;
50+
})
51+
.overrideAttrs (old: {
52+
configureFlags = old.configureFlags ++ [
53+
# Disable noisy debug dialogs
54+
"--enable-debug=no"
55+
];
56+
});
57+
58+
openvdb' = openvdb.overrideAttrs (old: {
5659
buildInputs = [
5760
openexr
5861
boost179
@@ -65,13 +68,13 @@ let
6568
in
6669
stdenv.mkDerivation rec {
6770
pname = "bambu-studio";
68-
version = "01.09.00.70";
71+
version = "01.09.07.52";
6972

7073
src = fetchFromGitHub {
7174
owner = "bambulab";
7275
repo = "BambuStudio";
7376
rev = "v${version}";
74-
hash = "sha256-RBctBhKo7mjxsP7OJhGfoU1eIiGVuMiAqwwSU+gsMds=";
77+
hash = "sha256-fhH4N29P/ysdHHbZt+FnBl3+QtTNhbVE3j4ZnFJyJH0=";
7578
};
7679

7780
nativeBuildInputs = [
@@ -95,31 +98,34 @@ stdenv.mkDerivation rec {
9598
glib
9699
glib-networking
97100
gmp
98-
gstreamer
99-
gst-plugins-base
100-
gst-plugins-bad
101-
gst-plugins-good
101+
gst_all_1.gstreamer
102+
gst_all_1.gst-plugins-base
103+
gst_all_1.gst-plugins-bad
104+
gst_all_1.gst-plugins-good
102105
gtk3
103106
hicolor-icon-theme
104107
ilmbase
105108
libpng
106109
mesa.osmesa
107110
mpfr
108111
nlopt
109-
opencascade-occt
110-
openvdb_tbb_2021_8
112+
opencascade-occt_7_6
113+
openvdb'
111114
pcre
112115
tbb_2021_11
113-
webkitgtk_4_0
114-
wxGTK31'
116+
webkitgtk
117+
wxGTK'
115118
xorg.libX11
119+
opencv
116120
] ++ lib.optionals withSystemd [ systemd ] ++ checkInputs;
117121

118122
patches = [
119123
# Fix for webkitgtk linking
120-
./0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
124+
./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
121125
# Fix build with cgal-5.6.1+
122-
./meshboolean-const.patch
126+
./patches/meshboolean-const.patch
127+
# Fix an issue with
128+
./patches/dont-link-opencv-world-bambu.patch
123129
];
124130

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

141150
# prusa-slicer uses dlopen on `libudev.so` at runtime
142151
NIX_LDFLAGS = lib.optionalString withSystemd "-ludev";
@@ -181,8 +190,9 @@ stdenv.mkDerivation rec {
181190
meta = with lib; {
182191
description = "PC Software for BambuLab's 3D printers";
183192
homepage = "https://github.com/bambulab/BambuStudio";
193+
changelog = "https://github.com/bambulab/BambuStudio/releases/tag/v${version}";
184194
license = licenses.agpl3Plus;
185-
maintainers = with maintainers; [ zhaofengli ];
195+
maintainers = with maintainers; [ zhaofengli dsluijk ];
186196
mainProgram = "bambu-studio";
187197
platforms = platforms.linux;
188198
};

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

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,15 @@ bambu-studio.overrideAttrs (
1616
hash = "sha256-7fusdSYpZb4sYl5L/+81PzMd42Nsejj+kCZsq0f7eIk=";
1717
};
1818

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-
];
19+
patches =[
20+
# FIXME: only required for 2.1.1, can be removed in the next version
21+
./patches/0002-fix-build-for-gcc-13.diff
22+
# Fix for webkitgtk linking
23+
./patches/0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
24+
# Fix build with cgal-5.6.1+
25+
./patches/meshboolean-const.patch
26+
./patches/dont-link-opencv-world-orca.patch
27+
];
3328

3429
preFixup = ''
3530
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
@@ -32575,15 +32575,7 @@ with pkgs;
3257532575

3257632576
super-slicer-latest = super-slicer.latest;
3257732577

32578-
bambu-studio = callPackage ../applications/misc/bambu-studio {
32579-
inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-bad gst-plugins-good;
32580-
32581-
wxGTK31 = wxGTK31.override {
32582-
withCurl = true;
32583-
withPrivateFonts = true;
32584-
withWebKit = true;
32585-
};
32586-
};
32578+
bambu-studio = callPackage ../applications/misc/bambu-studio { };
3258732579

3258832580
orca-slicer = callPackage ../applications/misc/bambu-studio/orca-slicer.nix {};
3258932581

0 commit comments

Comments
 (0)