-
Notifications
You must be signed in to change notification settings - Fork 232
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 NixOS Flake #247
base: master
Are you sure you want to change the base?
Add NixOS Flake #247
Conversation
Is this still being worked on, and has this been proposed to Godot? |
Also does this close #154? |
@Spartan322 I have my eye on this. |
yes, no |
bfafb16
to
59597d0
Compare
Update the copy command in package.nix to match the output binary names.
- Added a mono build option with dotnet 9 - Added OpenGL and fixed runtime dependencies - Migrated to nixpkgs master
59597d0
to
c9f645d
Compare
An update on this PR:
I recently installed NixOS via dual booting on my new macbook pro so I haven't really worked on Darwin support lately - I assume it's still broken. |
Based on #154, this PR adds a nix flake.
The changes I've made compared to #154 are:
To Do:
nix build .# && ./result/bin/redot
Darwin support is still WIP which is why I made this a draft. It seems like AppKit/AppKit.h is not being found despite it being present in buildInputs.
Additionally, I had to temporarily modify platform_methods.py to allow finding moltenVK in
${darwin.moltenvk}/lib/libMoltenVK.dylib
. This could probably be improved with a proper lookup of the entire sdk directory instead of looking in lib or other hard coded paths 🤔Edit: Hmm, AppKit.h is not in an AppKit/ directory an is instead just AppKit.h via something like
/nix/store/0nh8rqwsdaj9pj6lw0nkggry8ykkpazg-apple-framework-AppKit-11.0.0/Library/Frameworks/AppKit.framework/Versions/C/Headers/AppKit.h
.