Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OpenCascade Libraries to FromCabal.Name and Fix opencascade-hs in FromCabal.Postprocess #630

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

joe-warren
Copy link

@joe-warren joe-warren commented Nov 4, 2024

This PR includes two changes:

FromCabal.Name: add missing opencascade-occt library names

The OpenCascade OCCT library is distributed as multiple "toolkits", which in practice are separate link libraries.
In nix-packages, these are all bundled under opencascade-occt.
Adding these to FromCabal.Name lets us infer the correct nix package name from the extra-libraries name.

FromCabal.PostProcess: add opencascade-hs extra-include-dirs

Header files in the OpenCascade library are sorted under include/opencascade.
This needs to be explicitly passed to the extra-include-dirs configure flag of opencascade-hs for this package to build


Of the two above changes, I'm less confident that the second one is the correct thing to do, and I'm very open to other suggestions regarding it.

The OpenCascade OCCT library is distributed as multiple "toolkits", which in practice are separate link libraries.
In nix-packages, these are all bundled under opencascade-occt.
Header files in the OpenCascade library are sorted under `include/opencascade`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant