mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
mpv: 0.29.1 -> 0.30.0
This commit is contained in:
parent
6db4ae1f27
commit
b2256035a5
@ -20,30 +20,36 @@
|
|||||||
, libcdio-paranoia ? null
|
, libcdio-paranoia ? null
|
||||||
|
|
||||||
, vulkanSupport ? stdenv.isLinux
|
, vulkanSupport ? stdenv.isLinux
|
||||||
, shaderc ? null
|
, libplacebo ? null
|
||||||
|
, shaderc ? null
|
||||||
, vulkan-headers ? null
|
, vulkan-headers ? null
|
||||||
, vulkan-loader ? null
|
, vulkan-loader ? null
|
||||||
|
|
||||||
|
, drmSupport ? stdenv.isLinux
|
||||||
|
, libdrm ? null
|
||||||
|
, mesa ? null
|
||||||
|
|
||||||
, alsaSupport ? stdenv.isLinux, alsaLib ? null
|
, alsaSupport ? stdenv.isLinux, alsaLib ? null
|
||||||
, bluraySupport ? true, libbluray ? null
|
, bluraySupport ? true, libbluray ? null
|
||||||
, bs2bSupport ? true, libbs2b ? null
|
, bs2bSupport ? true, libbs2b ? null
|
||||||
, cacaSupport ? true, libcaca ? null
|
, cacaSupport ? true, libcaca ? null
|
||||||
, cmsSupport ? true, lcms2 ? null
|
, cmsSupport ? true, lcms2 ? null
|
||||||
, drmSupport ? stdenv.isLinux, libdrm ? null
|
|
||||||
, dvdnavSupport ? stdenv.isLinux, libdvdnav ? null
|
, dvdnavSupport ? stdenv.isLinux, libdvdnav ? null
|
||||||
, dvdreadSupport ? stdenv.isLinux, libdvdread ? null
|
|
||||||
, libpngSupport ? true, libpng ? null
|
, libpngSupport ? true, libpng ? null
|
||||||
, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
|
, pulseSupport ? config.pulseaudio or stdenv.isLinux, libpulseaudio ? null
|
||||||
, rubberbandSupport ? stdenv.isLinux, rubberband ? null
|
, rubberbandSupport ? stdenv.isLinux, rubberband ? null
|
||||||
, screenSaverSupport ? true, libXScrnSaver ? null
|
, screenSaverSupport ? true, libXScrnSaver ? null
|
||||||
|
, sambaSupport ? true, samba ? null
|
||||||
, sdl2Support ? true, SDL2 ? null
|
, sdl2Support ? true, SDL2 ? null
|
||||||
|
, sndioSupport ? true, sndio ? null
|
||||||
, speexSupport ? true, speex ? null
|
, speexSupport ? true, speex ? null
|
||||||
, theoraSupport ? true, libtheora ? null
|
, theoraSupport ? true, libtheora ? null
|
||||||
, vaapiSupport ? stdenv.isLinux, libva ? null
|
, vaapiSupport ? stdenv.isLinux, libva ? null
|
||||||
, vdpauSupport ? true, libvdpau ? null
|
, vdpauSupport ? true, libvdpau ? null
|
||||||
, xineramaSupport ? stdenv.isLinux, libXinerama ? null
|
, xineramaSupport ? stdenv.isLinux, libXinerama ? null
|
||||||
, xvSupport ? stdenv.isLinux, libXv ? null
|
, xvSupport ? stdenv.isLinux, libXv ? null
|
||||||
, youtubeSupport ? true, youtube-dl ? null
|
, youtubeSupport ? true, youtube-dl ? null
|
||||||
|
, zimgSupport ? true, zimg ? null
|
||||||
, archiveSupport ? false, libarchive ? null
|
, archiveSupport ? false, libarchive ? null
|
||||||
, jackaudioSupport ? false, libjack2 ? null
|
, jackaudioSupport ? false, libjack2 ? null
|
||||||
, openalSupport ? false, openalSoft ? null
|
, openalSupport ? false, openalSoft ? null
|
||||||
@ -60,28 +66,31 @@ assert archiveSupport -> available libarchive;
|
|||||||
assert bluraySupport -> available libbluray;
|
assert bluraySupport -> available libbluray;
|
||||||
assert bs2bSupport -> available libbs2b;
|
assert bs2bSupport -> available libbs2b;
|
||||||
assert cacaSupport -> available libcaca;
|
assert cacaSupport -> available libcaca;
|
||||||
assert cddaSupport -> all available [libcdio libcdio-paranoia];
|
assert cddaSupport -> all available [ libcdio libcdio-paranoia ];
|
||||||
assert cmsSupport -> available lcms2;
|
assert cmsSupport -> available lcms2;
|
||||||
assert drmSupport -> available libdrm;
|
assert drmSupport -> all available [ libdrm mesa ];
|
||||||
assert dvdnavSupport -> available libdvdnav;
|
assert dvdnavSupport -> available libdvdnav;
|
||||||
assert dvdreadSupport -> available libdvdread;
|
|
||||||
assert jackaudioSupport -> available libjack2;
|
assert jackaudioSupport -> available libjack2;
|
||||||
assert libpngSupport -> available libpng;
|
assert libpngSupport -> available libpng;
|
||||||
assert openalSupport -> available openalSoft;
|
assert openalSupport -> available openalSoft;
|
||||||
assert pulseSupport -> available libpulseaudio;
|
assert pulseSupport -> available libpulseaudio;
|
||||||
assert rubberbandSupport -> available rubberband;
|
assert rubberbandSupport -> available rubberband;
|
||||||
assert screenSaverSupport -> available libXScrnSaver;
|
assert screenSaverSupport -> available libXScrnSaver;
|
||||||
|
assert sambaSupport -> available samba;
|
||||||
assert sdl2Support -> available SDL2;
|
assert sdl2Support -> available SDL2;
|
||||||
|
assert sndioSupport -> available sndio;
|
||||||
assert speexSupport -> available speex;
|
assert speexSupport -> available speex;
|
||||||
assert theoraSupport -> available libtheora;
|
assert theoraSupport -> available libtheora;
|
||||||
assert vaapiSupport -> available libva;
|
assert vaapiSupport -> available libva;
|
||||||
assert vapoursynthSupport -> available vapoursynth;
|
assert vapoursynthSupport -> available vapoursynth;
|
||||||
assert vdpauSupport -> available libvdpau;
|
assert vdpauSupport -> available libvdpau;
|
||||||
|
assert vulkanSupport -> all available [ libplacebo shaderc vulkan-headers vulkan-loader ];
|
||||||
assert waylandSupport -> all available [ wayland wayland-protocols libxkbcommon ];
|
assert waylandSupport -> all available [ wayland wayland-protocols libxkbcommon ];
|
||||||
assert x11Support -> all available [ libGLU_combined libX11 libXext libXxf86vm libXrandr ];
|
assert x11Support -> all available [ libGLU_combined libX11 libXext libXxf86vm libXrandr ];
|
||||||
assert xineramaSupport -> x11Support && available libXinerama;
|
assert xineramaSupport -> x11Support && available libXinerama;
|
||||||
assert xvSupport -> x11Support && available libXv;
|
assert xvSupport -> x11Support && available libXv;
|
||||||
assert youtubeSupport -> available youtube-dl;
|
assert youtubeSupport -> available youtube-dl;
|
||||||
|
assert zimgSupport -> available zimg;
|
||||||
|
|
||||||
let
|
let
|
||||||
# Purity: Waf is normally downloaded by bootstrap.py, but
|
# Purity: Waf is normally downloaded by bootstrap.py, but
|
||||||
@ -92,17 +101,17 @@ let
|
|||||||
"http://www.freehackers.org/~tnagy/release/waf-${wafVersion}" ];
|
"http://www.freehackers.org/~tnagy/release/waf-${wafVersion}" ];
|
||||||
sha256 = "0j7sbn3w6bgslvwwh5v9527w3gi2sd08kskrgxamx693y0b0i3ia";
|
sha256 = "0j7sbn3w6bgslvwwh5v9527w3gi2sd08kskrgxamx693y0b0i3ia";
|
||||||
};
|
};
|
||||||
luaEnv = lua.withPackages(ps: with ps; [ luasocket ]);
|
luaEnv = lua.withPackages (ps: with ps; [ luasocket ]);
|
||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "mpv";
|
pname = "mpv";
|
||||||
version = "0.29.1";
|
version = "0.30.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mpv-player";
|
owner = "mpv-player";
|
||||||
repo = "mpv";
|
repo = "mpv";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "138921kx8g6qprim558xin09xximjhsj9ss8b71ifg2m6kclym8m";
|
sha256 = "17mxjgcfljlv6h0ik3332xsqbs0ybvk6dkwflyl0cjh15vl1iv6f";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -115,7 +124,6 @@ in stdenv.mkDerivation rec {
|
|||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-libmpv-shared"
|
"--enable-libmpv-shared"
|
||||||
"--enable-manpage-build"
|
"--enable-manpage-build"
|
||||||
"--enable-zsh-comp"
|
|
||||||
"--disable-libmpv-static"
|
"--disable-libmpv-static"
|
||||||
"--disable-static-build"
|
"--disable-static-build"
|
||||||
"--disable-build-date" # Purity
|
"--disable-build-date" # Purity
|
||||||
@ -123,8 +131,10 @@ in stdenv.mkDerivation rec {
|
|||||||
(enableFeature archiveSupport "libarchive")
|
(enableFeature archiveSupport "libarchive")
|
||||||
(enableFeature cddaSupport "cdda")
|
(enableFeature cddaSupport "cdda")
|
||||||
(enableFeature dvdnavSupport "dvdnav")
|
(enableFeature dvdnavSupport "dvdnav")
|
||||||
(enableFeature dvdreadSupport "dvdread")
|
|
||||||
(enableFeature openalSupport "openal")
|
(enableFeature openalSupport "openal")
|
||||||
|
(enableFeature sambaSupport "libsmbclient")
|
||||||
|
(enableFeature sdl2Support "sdl2")
|
||||||
|
(enableFeature sndioSupport "sndio")
|
||||||
(enableFeature vaapiSupport "vaapi")
|
(enableFeature vaapiSupport "vaapi")
|
||||||
(enableFeature waylandSupport "wayland")
|
(enableFeature waylandSupport "wayland")
|
||||||
(enableFeature stdenv.isLinux "dvbin")
|
(enableFeature stdenv.isLinux "dvbin")
|
||||||
@ -147,15 +157,15 @@ in stdenv.mkDerivation rec {
|
|||||||
++ optional bs2bSupport libbs2b
|
++ optional bs2bSupport libbs2b
|
||||||
++ optional cacaSupport libcaca
|
++ optional cacaSupport libcaca
|
||||||
++ optional cmsSupport lcms2
|
++ optional cmsSupport lcms2
|
||||||
++ optional drmSupport libdrm
|
|
||||||
++ optional dvdreadSupport libdvdread
|
|
||||||
++ optional jackaudioSupport libjack2
|
++ optional jackaudioSupport libjack2
|
||||||
++ optional libpngSupport libpng
|
++ optional libpngSupport libpng
|
||||||
++ optional openalSupport openalSoft
|
++ optional openalSupport openalSoft
|
||||||
++ optional pulseSupport libpulseaudio
|
++ optional pulseSupport libpulseaudio
|
||||||
++ optional rubberbandSupport rubberband
|
++ optional rubberbandSupport rubberband
|
||||||
|
++ optional sambaSupport samba
|
||||||
++ optional screenSaverSupport libXScrnSaver
|
++ optional screenSaverSupport libXScrnSaver
|
||||||
++ optional sdl2Support SDL2
|
++ optional sdl2Support SDL2
|
||||||
|
++ optional sndioSupport sndio
|
||||||
++ optional speexSupport speex
|
++ optional speexSupport speex
|
||||||
++ optional theoraSupport libtheora
|
++ optional theoraSupport libtheora
|
||||||
++ optional vaapiSupport libva
|
++ optional vaapiSupport libva
|
||||||
@ -164,13 +174,15 @@ in stdenv.mkDerivation rec {
|
|||||||
++ optional xineramaSupport libXinerama
|
++ optional xineramaSupport libXinerama
|
||||||
++ optional xvSupport libXv
|
++ optional xvSupport libXv
|
||||||
++ optional youtubeSupport youtube-dl
|
++ optional youtubeSupport youtube-dl
|
||||||
|
++ optional zimgSupport zimg
|
||||||
++ optional stdenv.isDarwin libiconv
|
++ optional stdenv.isDarwin libiconv
|
||||||
++ optional stdenv.isLinux nv-codec-headers
|
++ optional stdenv.isLinux nv-codec-headers
|
||||||
++ optionals cddaSupport [ libcdio libcdio-paranoia ]
|
++ optionals cddaSupport [ libcdio libcdio-paranoia ]
|
||||||
|
++ optionals drmSupport [ libdrm mesa ]
|
||||||
++ optionals dvdnavSupport [ libdvdnav libdvdnav.libdvdread ]
|
++ optionals dvdnavSupport [ libdvdnav libdvdnav.libdvdread ]
|
||||||
++ optionals waylandSupport [ wayland wayland-protocols libxkbcommon ]
|
++ optionals waylandSupport [ wayland wayland-protocols libxkbcommon ]
|
||||||
++ optionals x11Support [ libX11 libXext libGLU_combined libXxf86vm libXrandr ]
|
++ optionals x11Support [ libX11 libXext libGLU_combined libXxf86vm libXrandr ]
|
||||||
++ optionals vulkanSupport [ shaderc vulkan-headers vulkan-loader ]
|
++ optionals vulkanSupport [ libplacebo shaderc vulkan-headers vulkan-loader ]
|
||||||
++ 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 New Issue
Block a user