-
Notifications
You must be signed in to change notification settings - Fork 2
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
Convert script to Swift Package Manager library #5
Conversation
75f0536
to
f65e791
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the pr. Sorry it's taken a bit for me to get around to responding.
I love the premise of Nix and am thankful you've taken the time to help get this working.
The Swift Package Manager aspects look great. Just have some concerns around the SDK version compatibility. If anything is needed in order to get it working with Nix, please let me know.
I'll investigate why CI is failing...
This also avoids the incredibly cursed SDK parsing
The check for the Swift 6.0 compiler was trying to do the same thing (ensure that the 15.0 SDK or newer was in use before compiling code that would error on earlier SDKs), but there were niche situations where it would not work. Thanks to <https://marcoeidinger.github.io/appleframeworks/>, I have found a framework (CoreHID) that only exists in the 15.0 SDK or newer, so I have switched to checking if that module can be imported.
I believe I've addressed both your concerns (and I also rebased) |
Done. I restored |
Perfect! Thanks again for the pr! |
This PR converts the standalone script to a Swift Package Manager library. This is primarily so that I can add this module to Nixpkgs, because the tooling is better for SPM packages than standalone scripts. This change also allowed me to remove the manual parsing of the SDK, which both makes the build similar and also makes it easier to package