Skip to content

Commit 159385c

Browse files
authored
opencascade-occt: fix compilation on darwin (#365409)
``` FAILED: src/TKV3d/CMakeFiles/TKV3d.dir/__/StdPrs/StdPrs_BRepFont.cxx.o /nix/store/raqax5qp65an4jcwj1bzd5lq589ywpg0-clang-wrapper-16.0.6/bin/clang++ -DHAVE_FREETYPE -DHAVE_OPENGL -DHAVE_OPENGL_EXT -DHAVE_TK -DOCC_CO> /tmp/nix-build-opencascade-occt-7.8.1.drv-0/occt-V7_8_1-bd2a789/src/StdPrs/StdPrs_BRepFont.cxx:460:17: error: cannot initialize a variable of t> const char* aTags = &anOutline->tags[aStartIndex]; ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. ```
1 parent cc46eef commit 159385c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkgs/by-name/op/opencascade-occt/package.nix

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{ lib
22
, stdenv
33
, fetchurl
4+
, fetchpatch
45
, cmake
56
, ninja
67
, tcl
@@ -24,6 +25,15 @@ stdenv.mkDerivation rec {
2425
hash = "sha256-AGMZqTLLjXbzJFW/RSTsohAGV8sMxlUmdU/Y2oOzkk8=";
2526
};
2627

28+
patches = [
29+
# fix compilation on darwin against latest version of freetype
30+
# https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/330
31+
(fetchpatch {
32+
url = "https://github.com/Open-Cascade-SAS/OCCT/commit/7236e83dcc1e7284e66dc61e612154617ef715d6.diff";
33+
hash = "sha256-NoC2mE3DG78Y0c9UWonx1vmXoU4g5XxFUT3eVXqLU60=";
34+
})
35+
];
36+
2737
nativeBuildInputs = [
2838
cmake
2939
ninja

0 commit comments

Comments
 (0)