-
-
Notifications
You must be signed in to change notification settings - Fork 13.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
ffmpeg + SDL #24658
Comments
Partially fixed with PR #24698 the regular ffmpeg package will be a little bit trickier due to generic.nix |
This is kinda ugly but is all that needs to be changed for SDL. { sdlSupport ? !stdenv.isArm, SDL, SDL2 }:
{
buildInputs = optional sdlSupport (if minVer "3.2" then SDL2 else SDL);
configureFlags = [
(ifMinVer "2.5" (if ! minVer "3.2" && sdlSupport then "--enable-sdl" else null))
(ifMinVer "3.2" (if sdlSupport then "--enable-sdl2" else null))
];
} I partially scrapped this build and rewrote it a while back, if you look back in the commit history before we dropped support for older versions it should give you some ideas for a cleaner generic build. This build also merges ffmpeg and ffmpeg-full into a single derivation. |
addresses issue NixOS#24658 special thanks to codyopel who suggested this solution!
Apologies, got side-tracked with work. Thanks codyopel, this is very helpful! I have created a PR based off of your comment. I think that in the long run, unifying ffmpeg and ffmpeg-full is a good idea. For now though, my PR should fully address this issue |
addresses issue #24658 special thanks to codyopel who suggested this solution!
Fixed as of dfd371d |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
ffmpeg-3.2 (I think) dropped support for version 1 of SDL. As a result, some stuff gets missing unexpectedly in our builds, e.g. ffplay in
ffmpeg-full
(which was just noticed on IRC).Both 17.03 and unstable/master are affected.
The text was updated successfully, but these errors were encountered: