mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
mpv: resorted support options alphabetically
This commit is contained in:
parent
205f3e941a
commit
7cdb44e793
1 changed files with 67 additions and 67 deletions
|
@ -3,42 +3,42 @@
|
||||||
, freefont_ttf, freetype, libass, libpthreadstubs
|
, freefont_ttf, freetype, libass, libpthreadstubs
|
||||||
, lua, luasocket, libuchardet, libiconv ? null, darwin
|
, lua, luasocket, libuchardet, libiconv ? null, darwin
|
||||||
|
|
||||||
, x11Support ? stdenv.isLinux,
|
|
||||||
libGLU_combined ? null,
|
|
||||||
libX11 ? null,
|
|
||||||
libXext ? null,
|
|
||||||
libXxf86vm ? null,
|
|
||||||
libXrandr ? null
|
|
||||||
|
|
||||||
, waylandSupport ? false
|
, waylandSupport ? false
|
||||||
, wayland ? null
|
, wayland ? null
|
||||||
, wayland-protocols ? null
|
, wayland-protocols ? null
|
||||||
, libxkbcommon ? null
|
, libxkbcommon ? null
|
||||||
|
|
||||||
, rubberbandSupport ? true, rubberband ? null
|
, x11Support ? stdenv.isLinux
|
||||||
, xineramaSupport ? true, libXinerama ? null
|
, libGLU_combined ? null
|
||||||
, xvSupport ? true, libXv ? null
|
, libX11 ? null
|
||||||
, sdl2Support ? true, SDL2 ? null
|
, libXext ? null
|
||||||
|
, libXxf86vm ? null
|
||||||
|
, libXrandr ? null
|
||||||
|
|
||||||
, alsaSupport ? true, alsaLib ? null
|
, alsaSupport ? true, alsaLib ? null
|
||||||
, screenSaverSupport ? true, libXScrnSaver ? null
|
|
||||||
, cmsSupport ? true, lcms2 ? null
|
|
||||||
, vdpauSupport ? true, libvdpau ? null
|
|
||||||
, dvdreadSupport ? true, libdvdread ? null
|
|
||||||
, dvdnavSupport ? true, libdvdnav ? null
|
|
||||||
, bluraySupport ? true, libbluray ? null
|
, bluraySupport ? true, libbluray ? null
|
||||||
, speexSupport ? true, speex ? null
|
|
||||||
, theoraSupport ? true, libtheora ? null
|
|
||||||
, pulseSupport ? true, libpulseaudio ? null
|
|
||||||
, bs2bSupport ? true, libbs2b ? null
|
, bs2bSupport ? true, libbs2b ? null
|
||||||
, cacaSupport ? true, libcaca ? null
|
, cacaSupport ? true, libcaca ? null
|
||||||
, libpngSupport ? true, libpng ? null
|
, cmsSupport ? true, lcms2 ? null
|
||||||
, youtubeSupport ? true, youtube-dl ? null
|
|
||||||
, vaapiSupport ? true, libva ? null
|
|
||||||
, drmSupport ? true, libdrm ? null
|
, drmSupport ? true, libdrm ? null
|
||||||
, openalSupport ? false, openalSoft ? null
|
, dvdnavSupport ? true, libdvdnav ? null
|
||||||
, vapoursynthSupport ? false, vapoursynth ? null
|
, dvdreadSupport ? true, libdvdread ? null
|
||||||
|
, libpngSupport ? true, libpng ? null
|
||||||
|
, pulseSupport ? true, libpulseaudio ? null
|
||||||
|
, rubberbandSupport ? true, rubberband ? null
|
||||||
|
, screenSaverSupport ? true, libXScrnSaver ? null
|
||||||
|
, sdl2Support ? true, SDL2 ? null
|
||||||
|
, speexSupport ? true, speex ? null
|
||||||
|
, theoraSupport ? true, libtheora ? null
|
||||||
|
, vaapiSupport ? true, libva ? null
|
||||||
|
, vdpauSupport ? true, libvdpau ? null
|
||||||
|
, xineramaSupport ? true, libXinerama ? null
|
||||||
|
, xvSupport ? true, libXv ? null
|
||||||
|
, youtubeSupport ? true, youtube-dl ? null
|
||||||
, archiveSupport ? false, libarchive ? null
|
, archiveSupport ? false, libarchive ? null
|
||||||
, jackaudioSupport ? false, libjack2 ? null
|
, jackaudioSupport ? false, libjack2 ? null
|
||||||
|
, openalSupport ? false, openalSoft ? null
|
||||||
|
, vapoursynthSupport ? false, vapoursynth ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
|
@ -46,32 +46,32 @@ with stdenv.lib;
|
||||||
let
|
let
|
||||||
available = x: x != null;
|
available = x: x != null;
|
||||||
in
|
in
|
||||||
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;
|
|
||||||
assert xvSupport -> x11Support && available libXv;
|
|
||||||
assert sdl2Support -> available SDL2;
|
|
||||||
assert alsaSupport -> available alsaLib;
|
assert alsaSupport -> available alsaLib;
|
||||||
assert screenSaverSupport -> available libXScrnSaver;
|
assert archiveSupport -> available libarchive;
|
||||||
assert cmsSupport -> available lcms2;
|
|
||||||
assert vdpauSupport -> available libvdpau;
|
|
||||||
assert dvdreadSupport -> available libdvdread;
|
|
||||||
assert dvdnavSupport -> available libdvdnav;
|
|
||||||
assert bluraySupport -> available libbluray;
|
assert bluraySupport -> available libbluray;
|
||||||
assert speexSupport -> available speex;
|
|
||||||
assert theoraSupport -> available libtheora;
|
|
||||||
assert openalSupport -> available openalSoft;
|
|
||||||
assert pulseSupport -> available libpulseaudio;
|
|
||||||
assert bs2bSupport -> available libbs2b;
|
assert bs2bSupport -> available libbs2b;
|
||||||
assert cacaSupport -> available libcaca;
|
assert cacaSupport -> available libcaca;
|
||||||
assert libpngSupport -> available libpng;
|
assert cmsSupport -> available lcms2;
|
||||||
assert youtubeSupport -> available youtube-dl;
|
|
||||||
assert vapoursynthSupport -> available vapoursynth;
|
|
||||||
assert jackaudioSupport -> available libjack2;
|
|
||||||
assert archiveSupport -> available libarchive;
|
|
||||||
assert vaapiSupport -> available libva;
|
|
||||||
assert drmSupport -> available libdrm;
|
assert drmSupport -> available libdrm;
|
||||||
|
assert dvdnavSupport -> available libdvdnav;
|
||||||
|
assert dvdreadSupport -> available libdvdread;
|
||||||
|
assert jackaudioSupport -> available libjack2;
|
||||||
|
assert libpngSupport -> available libpng;
|
||||||
|
assert openalSupport -> available openalSoft;
|
||||||
|
assert pulseSupport -> available libpulseaudio;
|
||||||
|
assert rubberbandSupport -> available rubberband;
|
||||||
|
assert screenSaverSupport -> available libXScrnSaver;
|
||||||
|
assert sdl2Support -> available SDL2;
|
||||||
|
assert speexSupport -> available speex;
|
||||||
|
assert theoraSupport -> available libtheora;
|
||||||
|
assert vaapiSupport -> available libva;
|
||||||
|
assert vapoursynthSupport -> available vapoursynth;
|
||||||
|
assert vdpauSupport -> available libvdpau;
|
||||||
|
assert waylandSupport -> all available [ wayland wayland-protocols libxkbcommon ];
|
||||||
|
assert x11Support -> all available [ libGLU_combined libX11 libXext libXxf86vm libXrandr ];
|
||||||
|
assert xineramaSupport -> x11Support && available libXinerama;
|
||||||
|
assert xvSupport -> x11Support && available libXv;
|
||||||
|
assert youtubeSupport -> available youtube-dl;
|
||||||
|
|
||||||
let
|
let
|
||||||
# Purity: Waf is normally downloaded by bootstrap.py, but
|
# Purity: Waf is normally downloaded by bootstrap.py, but
|
||||||
|
@ -115,13 +115,13 @@ in stdenv.mkDerivation rec {
|
||||||
"--disable-static-build"
|
"--disable-static-build"
|
||||||
"--disable-build-date" # Purity
|
"--disable-build-date" # Purity
|
||||||
"--disable-macos-cocoa-cb" # Disable whilst Swift isn't supported
|
"--disable-macos-cocoa-cb" # Disable whilst Swift isn't supported
|
||||||
(enableFeature archiveSupport "libarchive")
|
(enableFeature archiveSupport "libarchive")
|
||||||
(enableFeature dvdreadSupport "dvdread")
|
(enableFeature dvdnavSupport "dvdnav")
|
||||||
(enableFeature dvdnavSupport "dvdnav")
|
(enableFeature dvdreadSupport "dvdread")
|
||||||
(enableFeature openalSupport "openal")
|
(enableFeature openalSupport "openal")
|
||||||
(enableFeature vaapiSupport "vaapi")
|
(enableFeature vaapiSupport "vaapi")
|
||||||
(enableFeature waylandSupport "wayland")
|
(enableFeature waylandSupport "wayland")
|
||||||
(enableFeature stdenv.isLinux "dvbin")
|
(enableFeature stdenv.isLinux "dvbin")
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
|
@ -137,32 +137,32 @@ in stdenv.mkDerivation rec {
|
||||||
ffmpeg_4 freetype libass libpthreadstubs
|
ffmpeg_4 freetype libass libpthreadstubs
|
||||||
lua luasocket libuchardet
|
lua luasocket libuchardet
|
||||||
] ++ optional alsaSupport alsaLib
|
] ++ optional alsaSupport alsaLib
|
||||||
++ optional xvSupport libXv
|
++ optional archiveSupport libarchive
|
||||||
++ optional theoraSupport libtheora
|
|
||||||
++ optional xineramaSupport libXinerama
|
|
||||||
++ optional dvdreadSupport libdvdread
|
|
||||||
++ optional bluraySupport libbluray
|
++ optional bluraySupport libbluray
|
||||||
|
++ optional bs2bSupport libbs2b
|
||||||
|
++ optional cacaSupport libcaca
|
||||||
|
++ optional cmsSupport lcms2
|
||||||
|
++ optional drmSupport libdrm
|
||||||
|
++ optional dvdreadSupport libdvdread
|
||||||
++ optional jackaudioSupport libjack2
|
++ optional jackaudioSupport libjack2
|
||||||
|
++ optional libpngSupport libpng
|
||||||
|
++ optional openalSupport openalSoft
|
||||||
++ optional pulseSupport libpulseaudio
|
++ optional pulseSupport libpulseaudio
|
||||||
++ optional rubberbandSupport rubberband
|
++ optional rubberbandSupport rubberband
|
||||||
++ optional screenSaverSupport libXScrnSaver
|
++ optional screenSaverSupport libXScrnSaver
|
||||||
++ optional cmsSupport lcms2
|
|
||||||
++ optional vdpauSupport libvdpau
|
|
||||||
++ optional speexSupport speex
|
|
||||||
++ optional bs2bSupport libbs2b
|
|
||||||
++ optional openalSupport openalSoft
|
|
||||||
++ optional libpngSupport libpng
|
|
||||||
++ optional youtubeSupport youtube-dl
|
|
||||||
++ optional sdl2Support SDL2
|
++ optional sdl2Support SDL2
|
||||||
++ optional cacaSupport libcaca
|
++ optional speexSupport speex
|
||||||
|
++ optional theoraSupport libtheora
|
||||||
++ optional vaapiSupport libva
|
++ optional vaapiSupport libva
|
||||||
++ optional drmSupport libdrm
|
|
||||||
++ optional vapoursynthSupport vapoursynth
|
++ optional vapoursynthSupport vapoursynth
|
||||||
++ optional archiveSupport libarchive
|
++ optional vdpauSupport libvdpau
|
||||||
|
++ optional xineramaSupport libXinerama
|
||||||
|
++ optional xvSupport libXv
|
||||||
|
++ optional youtubeSupport youtube-dl
|
||||||
++ optional stdenv.isDarwin libiconv
|
++ optional stdenv.isDarwin libiconv
|
||||||
++ optionals dvdnavSupport [ libdvdnav libdvdnav.libdvdread ]
|
++ optionals dvdnavSupport [ libdvdnav libdvdnav.libdvdread ]
|
||||||
++ optionals x11Support [ libX11 libXext libGLU_combined libXxf86vm libXrandr ]
|
|
||||||
++ optionals waylandSupport [ wayland wayland-protocols libxkbcommon ]
|
++ optionals waylandSupport [ wayland wayland-protocols libxkbcommon ]
|
||||||
|
++ optionals x11Support [ libX11 libXext libGLU_combined libXxf86vm libXrandr ]
|
||||||
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
||||||
CoreFoundation Cocoa CoreAudio
|
CoreFoundation Cocoa CoreAudio
|
||||||
]);
|
]);
|
||||||
|
|
Loading…
Reference in a new issue