-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
mpv: enable swift support #214944
mpv: enable swift support #214944
Conversation
53b6d6a
to
5988220
Compare
@ofborg build mpv mpv.passthru.tests |
Thanks for point out the closure size! It's something I'll make a PR for separately. I'm seeing the same build failure as ofBorg on |
Unfortunately (or not) I can't possibly comment, because this is too Darwin-specific to me. Nonetheless, I wish good luck. |
The error log on x86_64-darwin is different before and after commit 64bce1d Before(https://logs.nix.ci/?key=nixos/nixpkgs.214944&attempt_id=5ab1c3e7-d414-4bbe-9a9a-0bce635c1dc4):
After(https://logs.nix.ci/?key=nixos/nixpkgs.214944&attempt_id=76802592-760c-47e1-9141-4465b7c78f4c):
I can reproduce the same error using |
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.
Result of nixpkgs-review pr 214944
run on aarch64-darwin 1
1 package built:
- mpv
Diff LGTM and it works just fine on aarch64-darwin.
Closure size optimisation can come later, that's not a hard blocker IMO.
Once the x86 issue is fixed, this is good to go.
This commit should be reverted after [x86_64-darwin build failure][1] is fixed [1]: https://logs.nix.ci/?key=nixos/nixpkgs.214944&attempt_id=76802592-760c-47e1-9141-4465b7c78f4c
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.
Result of nixpkgs-review pr 214944
run on aarch64-darwin 1
5 packages marked as broken and skipped:
- hydrus
- jellyfin-mpv-shim
- mpc-qt
- plex-mpv-shim
- sublime-music
2 packages failed to build:
- mnemosyne
- subtitleedit
11 packages built:
- ani-cli
- anki
- cplay-ng
- curseradio
- dmlive
- mpv-unwrapped
- python310Packages.mpv
- python311Packages.mpv
- somafm-cli
- wtwitch
- ytfzf
Result of 5 packages marked as broken and skipped:
13 packages built:
|
Swift support doesn’t seem to work with back-deployed dylibs, so set the deployment target to 10.15 to force Swift to link against the system Swift libraries. The change to use the Swift stdenv fixes the errors reported in NixOS#214944.
Description of changes
Since swift is available on master now, I've rebased @stephank's work on mpv stephank@4ce183c to master, and made this pull request for discussion.
When I used nix-tree to check the closure size of the built mpv, I've found swift lib references clang, and make the closure size pretty big:
Is that expected?
Removing
preConfigure
will make the closure size even bigger:Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes