Skip to content

Commit

Permalink
[Backport release-24.11] opencascade-occt: fix compilation on darwin (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangwalther authored Dec 22, 2024
2 parents 0ebf06b + 2beb678 commit fcffe4d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions pkgs/by-name/op/opencascade-occt/package.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchurl
, fetchpatch
, cmake
, ninja
, tcl
Expand All @@ -24,6 +25,15 @@ stdenv.mkDerivation rec {
hash = "sha256-AGMZqTLLjXbzJFW/RSTsohAGV8sMxlUmdU/Y2oOzkk8=";
};

patches = [
# fix compilation on darwin against latest version of freetype
# https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/330
(fetchpatch {
url = "https://github.com/Open-Cascade-SAS/OCCT/commit/7236e83dcc1e7284e66dc61e612154617ef715d6.diff";
hash = "sha256-NoC2mE3DG78Y0c9UWonx1vmXoU4g5XxFUT3eVXqLU60=";
})
];

nativeBuildInputs = [
cmake
ninja
Expand Down

0 comments on commit fcffe4d

Please sign in to comment.