Skip to content

Commit eed3d89

Browse files
committed
openscad-unstable: remove unused submodules
1 parent 1e14d2c commit eed3d89

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ clangStdenv.mkDerivation rec {
5151
repo = "openscad";
5252
rev = "c76900f9a62fcb98c503dcc5ccce380db8ac564b";
5353
hash = "sha256-R2/8T5+BugVTRIUVLaz6SxKQ1YrtyAGbiE4K1Fuc6bg=";
54-
# Unfortunately, we can't selectively fetch submodules. It would be good
55-
# to see that we don't accidentally depend on it.
56-
fetchSubmodules = true; # Only really need sanitizers-cmake and MCAD
54+
fetchSubmodules = true; # Only really need sanitizers-cmake and MCAD and manifold
5755
};
5856

5957
patches = [ ./test.diff ];
@@ -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)