Skip to content

Commit 326d2f9

Browse files
authored
openscad-unstable: 2025-02-07 -> 2025-05-17 (#409444)
2 parents 85e3614 + eed3d89 commit 326d2f9

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

pkgs/by-name/op/openscad-unstable/package.nix

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,10 @@
3030
libsForQt5,
3131
libspnav,
3232
libzip,
33-
manifold,
3433
mesa,
3534
mpfr,
3635
python3,
37-
tbb_2021_11,
36+
tbb_2022_0,
3837
wayland,
3938
wayland-protocols,
4039
wrapGAppsHook3,
@@ -46,15 +45,13 @@
4645
# clang consume much less RAM than GCC
4746
clangStdenv.mkDerivation rec {
4847
pname = "openscad-unstable";
49-
version = "2025-02-07";
48+
version = "2025-05-17";
5049
src = fetchFromGitHub {
5150
owner = "openscad";
5251
repo = "openscad";
53-
rev = "1308a7d476facb466bf9fae1e77666c35c8e3c8f";
54-
hash = "sha256-+0cQ5mgRzOPfP6nl/rfC/hnw3V7yvGJCyLU8hOmlGOc=";
55-
# Unfortunately, we can't selectively fetch submodules. It would be good
56-
# to see that we don't accidentally depend on it.
57-
fetchSubmodules = true; # Only really need sanitizers-cmake and MCAD
52+
rev = "c76900f9a62fcb98c503dcc5ccce380db8ac564b";
53+
hash = "sha256-R2/8T5+BugVTRIUVLaz6SxKQ1YrtyAGbiE4K1Fuc6bg=";
54+
fetchSubmodules = true; # Only really need sanitizers-cmake and MCAD and manifold
5855
};
5956

6057
patches = [ ./test.diff ];
@@ -81,7 +78,7 @@ clangStdenv.mkDerivation rec {
8178
[
8279
clipper2
8380
glm
84-
tbb_2021_11
81+
tbb_2022_0
8582
mimalloc
8683
boost
8784
cairo
@@ -99,7 +96,6 @@ clangStdenv.mkDerivation rec {
9996
lib3mf
10097
libspnav
10198
libzip
102-
manifold
10399
mpfr
104100
qscintilla
105101
qtbase
@@ -119,7 +115,9 @@ clangStdenv.mkDerivation rec {
119115
"-DEXPERIMENTAL=ON" # enable experimental options
120116
"-DSNAPSHOT=ON" # nightly icons
121117
"-DUSE_BUILTIN_OPENCSG=OFF"
122-
"-DUSE_BUILTIN_MANIFOLD=OFF"
118+
# use builtin manifold: 3.1.0 doesn't pass tests, builtin is 7c8fbe1, between 3.0.1 and 3.1.0
119+
# FIXME revisit on version update
120+
"-DUSE_BUILTIN_MANIFOLD=ON"
123121
"-DUSE_BUILTIN_CLIPPER2=OFF"
124122
"-DOPENSCAD_VERSION=\"${builtins.replaceStrings [ "-" ] [ "." ] version}\""
125123
"-DCMAKE_UNITY_BUILD=OFF" # broken compile with unity
@@ -135,6 +133,14 @@ clangStdenv.mkDerivation rec {
135133
# tests rely on sysprof which is not available on darwin
136134
doCheck = !stdenv.hostPlatform.isDarwin;
137135

136+
# remove unused submodules, to ensure correct dependency usage
137+
postUnpack = ''
138+
( cd $sourceRoot
139+
for m in submodules/OpenCSG submodules/mimalloc submodules/Clipper2
140+
do rm -r $m
141+
done )
142+
'';
143+
138144
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
139145
mkdir $out/Applications
140146
mv $out/bin/*.app $out/Applications

0 commit comments

Comments
 (0)