From d58dae5d2f5338f849cce1f4f7268a3961466605 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 3 Oct 2025 18:05:39 +0200 Subject: [PATCH] nix build script add occt 7.9.1 patch --- nix/build-all.py | 6 ++++++ nix/patches/occt/no_ExpToCasExe_7_9_1.patch | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 nix/patches/occt/no_ExpToCasExe_7_9_1.patch diff --git a/nix/build-all.py b/nix/build-all.py index 764705688f..d7b7a36e72 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -344,6 +344,12 @@ PIC = "-fPIC" if BUILD_STATIC else "" if any(f.startswith("py-") for f in flags): PYTHON_VERSIONS = [pyv for pyv in PYTHON_VERSIONS if f"py-{''.join(pyv.split('.')[:2])}" in flags] +if any(f.startswith("occt-") for f in flags): + OCCT_VERSION = next(f.split('-', 1)[1] for f in flags if f.startswith("occt-")) + +print(OCCT_VERSION) +exit() + if explicit_targets: targets = {dep for target in explicit_targets for dep in gather_dependencies(target)} else: diff --git a/nix/patches/occt/no_ExpToCasExe_7_9_1.patch b/nix/patches/occt/no_ExpToCasExe_7_9_1.patch new file mode 100644 index 0000000000..abe2b20ef9 --- /dev/null +++ b/nix/patches/occt/no_ExpToCasExe_7_9_1.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 34300d41ad..09b2e0d45f 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -721,6 +721,8 @@ else() + OCCT_CHECK_AND_UNSET ("3RDPARTY_DOT_EXECUTABLE") + endif() + ++list (REMOVE_ITEM BUILD_TOOLKITS ExpToCasExe) ++ + # bison + if (BUILD_YACCLEX) + list (APPEND OCCT_3RDPARTY_CMAKE_LIST "adm/cmake/bison")