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: fix lua library paths and clean up #35885
Conversation
@GrahamcOfBorg build mpv |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
, xineramaSupport ? true, libXinerama ? null | ||
, xvSupport ? true, libXv ? null | ||
, sdl2Support ? true, SDL2 ? null | ||
, alsaSupport ? !stdenv.isDarwin, alsaLib ? null |
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.
Why is this removed?
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.
I moved these to the package call (in all-packages.nix) since there was a waylandSupport = stdenv.isLinux;
there already.
Success on x86_64-linux (full log) Partial log (click to expand)
|
Mhm which package introduce |
|
I think we need a |
rubberbandSupport = !stdenv.isDarwin; | ||
dvdreadSupport = !stdenv.isDarwin; | ||
dvdnavSupport = !stdenv.isDarwin; | ||
drmSupport = !stdenv.isDarwin; |
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.
drmSupport is already disabled.
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.
Oh, right. So does this mean the ? true
in the package is overriding the option in the call?
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.
Only if the variable is null, which is not the case.
Does why-depends
only show the first match?
$ nix-repl> ({ a ? true }: a) { a = false; }
false
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.
$ nix why-depends -a nixpkgs.mpv nixpkgs.xlibs.libpciaccess
gives a more complete picture
@@ -1,7 +1,7 @@ | |||
{ stdenv, fetchurl, fetchFromGitHub, fetchpatch, makeWrapper | |||
, docutils, perl, pkgconfig, python3, which, ffmpeg | |||
, freefont_ttf, freetype, libass, libpthreadstubs | |||
, lua, lua5_sockets, libuchardet, libiconv ? null, darwin | |||
, lua, luasocket, libuchardet, libiconv ? null, darwin | |||
|
|||
, x11Support ? true, |
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.
libpciaccess
is pulled by mesa, which is pulled by x11Support.
@GrahamcOfBorg build mpv |
Let's roll the dice. |
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
@GrahamcOfBorg build mpv |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Thank you |
Motivation for this change
I fixed the library paths so luasocket can be used from mpv scripts and removed the libcaca TODO as it seems to work fine. Also I cleaned up a bit the features/options of the package.
Things done