-
-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
stats: build from source #333546
base: master
Are you sure you want to change the base?
stats: build from source #333546
Conversation
@DontEatOreo have you tried adding |
I will try it rn |
Unfortunately, that did not work (I got same error) but I added ./Stats-bkfkssqxiuvzqubnwpwicsycxaul/Build/Intermediates/Stats.build/Release/Kit.build/DerivedSources/Kit-Swift.h ./Stats-bkfkssqxiuvzqubnwpwicsycxaul/Build/Intermediates/Stats.build/Release/Kit.build/Objects-normal/arm64/Kit-Swift.h I also added |
@DontEatOreo You may also want to go through the Swift files in the project, and check which frameworks are required: https://github.com/search?q=repo%3Aexelban%2Fstats%20%20path%3A*.swift%20%22import%22&type=code ( I can see plenty, and I have a feeling they need to be added via |
@matteo-pacini I went and added all of them, but still same issue, weirdly enough every time I try to build it gives different error even if nothing was changed once will be
another time will be or These are the frameworks I added:
(I tried Interestingly, even if I remove |
@DontEatOreo not sure what the problem is here, but plenty of Darwin apps I tried to compile from source failed because of Could you please push your latest changes here so I can have a look? It would also be great to mark this PR as a draft for the time being. |
ef4785e
to
93eddc8
Compare
@matteo-pacini Yeah, that's unfortunate. AFAIK we can't really use the Apple Xcode on Nix? I made the commands more "friendly" to Facebook's |
93eddc8
to
f4ac311
Compare
@DontEatOreo Bit of a bummer indeed, I had a similar issue here #320122, where I had to backtrack from source-based derivation to a bin-based one, as we cannot compile Metal shaders without Xcode (yet!). Going to double check what happens later today, and come back to you! |
Tried the PR with a mix of changes (darwin frameworks, darwin.ditto also) - works in Xcode but fails on Nix :( perhaps someone from @NixOS/darwin-maintainers has a clue on how to fix this? |
I tried but was unable to build |
As far as I can tell currently, it's more or less impossible to build I want to do a final ping to @NixOS/darwin-maintainers. If anyone has experience with Xcode, I would appreciate a review. The main issue is that Running the build command outside Nix with Apple's XCode produces a |
I apologize that I haven't had time to look much at this (moving this month and I'm relative novice anyway), but just wanted to mention my experience adapting my beloved Not sure if that is applicable given the swift and swiftmodule issues noted above, but can't hurt to mention the (painstaking) approach that eventually worked for me. |
Maybe this gets easier when the transition to new (darwin sdk) pattern is complete? |
Description of changes
@NixOS/darwin-maintainers Hey folks! I need a bit of helping hand, I think I almost have everything done for
stats
to be build from source but I'm struggling with an error that I have no idea how to fixBuild log:
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.