-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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-unwrapped: build with meson #201379
mpv-unwrapped: build with meson #201379
Conversation
Could you mark this as a draft until Darwin support is figured out? Result of 7 packages marked as broken and skipped:
8 packages failed to build:
Build log:
|
It seems to be unable to find our SDK. If you enable
|
https://github.com/mpv-player/mpv/blob/75d938912ddd50f5658d874c59e1b50e13b28bf1/TOOLS/macos-sdk-version.py is used to fetch the SDK location and version which uses When you add
The file isn't there; |
OH. That's our doing. Trivial to patch. Was wondering why I couldn't find it in their meson.build. |
Apparently MPV includes an osxbundle target or something now, we should probably use that instead of our own install script for Darwin? |
NIX_LDFLAGS = lib.optionalString x11Support "-lX11 -lXext " | ||
+ lib.optionalString stdenv.isDarwin "-framework CoreFoundation"; |
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.
We don't need the LDFLAGS for darwin here anymore, we should check whether we can drop this for Linux aswell.
Got it working: https://github.com/Atemu/nixpkgs/tree/mpv-meson-darwin, feel free to pull. |
@SuperSandro2000 do you want to continue to pursue this? |
xcrun is required for darwin to find its SDK location and for the version detection. Co-authored-by: adisbladis <[email protected]> Co-authored-by: Anderson Torres <[email protected]> Co-authored-by: Atemu <[email protected]>
Pulled, squashed, edited message and Co-Author, try to test but I need a real X11 for that and force pushed. |
f010faa
to
6832930
Compare
Do we want to merge this? |
I want to merge, but I don't want to push a war on it again. |
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.
Works for me on NixOS.
I would suggest changing ffmpeg
to ffmpeg_5
in this PR to avoid issues like these:
mpv-player/mpv#7326
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 201379
run on aarch64-darwin 1
7 packages marked as broken and skipped:
- anki
- hydrus
- jellyfin-mpv-shim
- mnemosyne
- mpc-qt
- plex-mpv-shim
- sublime-music
8 packages built:
- ani-cli
- curseradio
- dmlive
- mpv-unwrapped
- python310Packages.mpv
- python39Packages.mpv
- somafm-cli
- ytfzf
@AndersonTorres Now that branch-off has happened, Darwin support is figured out and it's been sitting around for a while with no obvious flaws pointed out, there's nothing to "go to war" about.
thats unrelated to changing the build system and an issue for a longer time already. |
Currently breaks darwin.
Description of changes
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