diff options
author | aszlig <aszlig@nix.build> | 2018-07-05 00:37:19 +0200 |
---|---|---|
committer | aszlig <aszlig@nix.build> | 2018-07-05 00:44:26 +0200 |
commit | 7a19228215eda4e24b4c37af5a2b0e6ce67c7d19 (patch) | |
tree | 1d2727496c6306cbd686d710f471056df5989195 /pkgs/applications/video | |
parent | 4dfea241bc2d0287d1542f471637ff427e041f87 (diff) | |
download | nixlib-7a19228215eda4e24b4c37af5a2b0e6ce67c7d19.tar nixlib-7a19228215eda4e24b4c37af5a2b0e6ce67c7d19.tar.gz nixlib-7a19228215eda4e24b4c37af5a2b0e6ce67c7d19.tar.bz2 nixlib-7a19228215eda4e24b4c37af5a2b0e6ce67c7d19.tar.lz nixlib-7a19228215eda4e24b4c37af5a2b0e6ce67c7d19.tar.xz nixlib-7a19228215eda4e24b4c37af5a2b0e6ce67c7d19.tar.zst nixlib-7a19228215eda4e24b4c37af5a2b0e6ce67c7d19.zip |
mpv: Fix X11 support by adding libXrandr
This is a follow-up to 6b404b944a5f041b47fa1d57b74bb72f563a5014, which fixed the build after SDL no longer leaks through X libraries. However the commit didn't actually pass all the required dependencies to mpv, because the configure phase of mpv still disabled X support: Checking for X11 err: Package xrandr was not found in the pkg-config search path. Perhaps you should add the directory containing `xrandr.pc' to the PKG_CONFIG_PATH environment variable No package 'xrandr' found So by adding libXrandr, we finally have support for X again. Trivia: While I'm usually very pesky about line lengths this is one of the very rare occasions where I didn't break the lines after 79 characters because it would have messed up the overall style of the file. Signed-off-by: aszlig <aszlig@nix.build> Cc: @AndersonTorres, @fuuzetsu, @fpletz, @orivej
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/mpv/default.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index 8cbf32d99f83..7880c3150872 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -7,7 +7,8 @@ libGLU_combined ? null, libX11 ? null, libXext ? null, - libXxf86vm ? null + libXxf86vm ? null, + libXrandr ? null , waylandSupport ? false , wayland ? null @@ -47,7 +48,7 @@ with stdenv.lib; let available = x: x != null; in -assert x11Support -> all available [libGLU_combined libX11 libXext libXxf86vm]; +assert x11Support -> all available [libGLU_combined libX11 libXext libXxf86vm libXrandr]; assert waylandSupport -> all available [wayland wayland-protocols libxkbcommon]; assert rubberbandSupport -> available rubberband; assert xineramaSupport -> x11Support && available libXinerama; @@ -151,7 +152,7 @@ in stdenv.mkDerivation rec { ++ optional vapoursynthSupport vapoursynth ++ optional archiveSupport libarchive ++ optionals dvdnavSupport [ libdvdnav libdvdnav.libdvdread ] - ++ optionals x11Support [ libX11 libXext libGLU_combined libXxf86vm ] + ++ optionals x11Support [ libX11 libXext libGLU_combined libXxf86vm libXrandr ] ++ optionals waylandSupport [ wayland wayland-protocols libxkbcommon ] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ libiconv Cocoa CoreAudio |