nix build script add occt 7.9.1 patch

This commit is contained in:
Thomas Krijnen
2025-10-03 18:05:39 +02:00
parent ca3685900f
commit d58dae5d2f
2 changed files with 19 additions and 0 deletions
+6
View File
@@ -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: