Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #43642 from stefano-m/release-18.03

release-18.03: Update VLC to version 3.0.3

authored by Andreas Rammhold and committed by GitHub 6dc85504 70b2b127

+73 -76
+58 -53
pkgs/applications/video/vlc/default.nix
··· 1 - { stdenv, fetchurl, xz, bzip2, perl, xorg, libdvdnav, libbluray 2 , zlib, a52dec, libmad, faad2, ffmpeg, alsaLib 3 , pkgconfig, dbus, fribidi, freefont_ttf, libebml, libmatroska 4 - , libvorbis, libtheora, speex, lua5, libgcrypt, libupnp 5 , libcaca, libpulseaudio, flac, schroedinger, libxml2, librsvg 6 - , mpeg2dec, udev, gnutls, avahi, libcddb, libjack2, SDL, SDL_image 7 , libmtp, unzip, taglib, libkate, libtiger, libv4l, samba, liboggz 8 - , libass, libva, libdvbpsi, libdc1394, libraw1394, libopus 9 - , libvdpau, libsamplerate, live555, fluidsynth 10 , onlyLibVLC ? false 11 - , qt4 ? null 12 - , withQt5 ? false, qtbase ? null, qtx11extras ? null 13 , jackSupport ? false 14 , fetchpatch 15 }: 16 17 with stdenv.lib; 18 19 - assert (withQt5 -> qtbase != null && qtx11extras != null); 20 - assert (!withQt5 -> qt4 != null); 21 22 stdenv.mkDerivation rec { 23 name = "vlc-${version}"; 24 - version = "2.2.8"; 25 26 src = fetchurl { 27 url = "http://get.videolan.org/vlc/${version}/${name}.tar.xz"; 28 - sha256 = "1v32snw46rkgbdqdy3dssl2y13i8p2cr1cw1i18r6vdmiy24dw4v"; 29 }; 30 31 - # Comment-out the Qt 5.5 version check, as we do apply the relevant patch. 32 - # https://trac.videolan.org/vlc/ticket/16497 33 - postPatch = if (!withQt5) then null else 34 - "sed '/I78ef29975181ee22429c9bd4b11d96d9e68b7a9c/s/^/: #/' -i configure"; 35 - 36 - buildInputs = 37 - [ xz bzip2 perl zlib a52dec libmad faad2 ffmpeg alsaLib libdvdnav libdvdnav.libdvdread 38 - libbluray dbus fribidi libvorbis libtheora speex lua5 libgcrypt 39 - libupnp libcaca libpulseaudio flac schroedinger libxml2 librsvg mpeg2dec 40 - udev gnutls avahi libcddb SDL SDL_image libmtp unzip taglib 41 - libkate libtiger libv4l samba liboggz libass libdvbpsi libva 42 - xorg.xlibsWrapper xorg.libXv xorg.libXvMC xorg.libXpm xorg.xcbutilkeysyms 43 - libdc1394 libraw1394 libopus libebml libmatroska libvdpau libsamplerate live555 44 - fluidsynth 45 - ] 46 - ++ [(if withQt5 then qtbase else qt4)] 47 - ++ optional withQt5 qtx11extras 48 ++ optional jackSupport libjack2; 49 50 - nativeBuildInputs = [ pkgconfig ]; 51 52 LIVE555_PREFIX = live555; 53 54 - preConfigure = '' 55 - sed -e "s@/bin/echo@echo@g" -i configure 56 - '' + optionalString withQt5 '' 57 - # Make sure we only *add* "-std=c++11" to CXXFLAGS instead of overriding the 58 - # values figured out by configure (for example "-g -O2"). 59 - sed -i -re '/^ *CXXFLAGS=("[^$"]+")? *$/s/CXXFLAGS="?/&-std=c++11 /' \ 60 - configure 61 - ''; 62 63 - configureFlags = 64 - [ "--enable-alsa" 65 - "--with-kde-solid=$out/share/apps/solid/actions" 66 - "--enable-dc1394" 67 - "--enable-ncurses" 68 - "--enable-vdpau" 69 - "--enable-dvdnav" 70 - "--enable-samplerate" 71 - ] 72 - ++ optional onlyLibVLC "--disable-vlc"; 73 74 - enableParallelBuilding = true; 75 76 - preBuild = '' 77 - substituteInPlace modules/text_renderer/freetype.c --replace \ 78 - /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf \ 79 - ${freefont_ttf}/share/fonts/truetype/FreeSerifBold.ttf 80 ''; 81 82 meta = with stdenv.lib; { 83 description = "Cross-platform media player and streaming server"; 84 homepage = http://www.videolan.org/vlc/; 85 - platforms = platforms.linux; 86 license = licenses.lgpl21Plus; 87 }; 88 }
··· 1 + { stdenv, fetchurl, autoreconfHook 2 + , libarchive, perl, xorg, libdvdnav, libbluray 3 , zlib, a52dec, libmad, faad2, ffmpeg, alsaLib 4 , pkgconfig, dbus, fribidi, freefont_ttf, libebml, libmatroska 5 + , libvorbis, libtheora, speex, lua5, libgcrypt, libgpgerror, libupnp 6 , libcaca, libpulseaudio, flac, schroedinger, libxml2, librsvg 7 + , mpeg2dec, systemd, gnutls, avahi, libcddb, libjack2, SDL, SDL_image 8 , libmtp, unzip, taglib, libkate, libtiger, libv4l, samba, liboggz 9 + , libass, libva-full, libdvbpsi, libdc1394, libraw1394, libopus 10 + , libvdpau, libsamplerate, live555, fluidsynth, wayland, wayland-protocols 11 , onlyLibVLC ? false 12 + , withQt5 ? true, qtbase ? null, qtsvg ? null, qtx11extras ? null 13 , jackSupport ? false 14 , fetchpatch 15 }: 16 17 with stdenv.lib; 18 19 + assert (withQt5 -> qtbase != null && qtsvg != null && qtx11extras != null); 20 21 stdenv.mkDerivation rec { 22 name = "vlc-${version}"; 23 + version = "3.0.3"; 24 25 src = fetchurl { 26 url = "http://get.videolan.org/vlc/${version}/${name}.tar.xz"; 27 + sha256 = "0lavzly8l0ll1d9iris9cnirgcs77g48lxj14058dxqkvd5v1a4v"; 28 }; 29 30 + # VLC uses a *ton* of libraries for various pieces of functionality, many of 31 + # which are not included here for no other reason that nobody has mentioned 32 + # needing them 33 + buildInputs = [ 34 + zlib a52dec libmad faad2 ffmpeg alsaLib libdvdnav libdvdnav.libdvdread 35 + libbluray dbus fribidi libvorbis libtheora speex lua5 libgcrypt libgpgerror 36 + libupnp libcaca libpulseaudio flac schroedinger libxml2 librsvg mpeg2dec 37 + systemd gnutls avahi libcddb SDL SDL_image libmtp unzip taglib libarchive 38 + libkate libtiger libv4l samba liboggz libass libdvbpsi libva-full 39 + xorg.xlibsWrapper xorg.libXv xorg.libXvMC xorg.libXpm xorg.xcbutilkeysyms 40 + libdc1394 libraw1394 libopus libebml libmatroska libvdpau libsamplerate live555 41 + fluidsynth wayland wayland-protocols 42 + ] ++ optionals withQt5 [ qtbase qtsvg qtx11extras ] 43 ++ optional jackSupport libjack2; 44 45 + nativeBuildInputs = [ autoreconfHook perl pkgconfig ]; 46 + 47 + enableParallelBuilding = true; 48 49 LIVE555_PREFIX = live555; 50 51 + # vlc depends on a c11-gcc wrapper script which we don't have so we need to 52 + # set the path to the compiler 53 + BUILDCC = "${stdenv.cc}/bin/gcc"; 54 55 + patches = [ 56 + (fetchpatch { 57 + name = "vlc-qt5.11.patch"; 58 + url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/vlc-qt5.11.patch?h=packages/vlc"; 59 + sha256 = "0yh65bhhaz876cazhagnafs1dr61184lpj3y0m3y7k37bswykj8p"; 60 + }) 61 + (fetchpatch { 62 + url = "https://github.com/videolan/vlc/commit/26e2d3906658c30f2f88f4b1bc9630ec43bf5525.patch"; 63 + sha256 = "0sm73cbzxva8sww526bh5yin1k2pdkvj826wdlmqnj7xf0f3mki4"; 64 + }) 65 + ]; 66 + 67 + postPatch = '' 68 + substituteInPlace configure \ 69 + --replace /bin/echo echo 70 71 + substituteInPlace modules/text_renderer/freetype/platform_fonts.h --replace \ 72 + /usr/share/fonts/truetype/freefont ${freefont_ttf}/share/fonts/truetype 73 + ''; 74 75 + # https://github.com/NixOS/nixpkgs/pull/35124#issuecomment-370552830 76 + postFixup = '' 77 + find $out/lib/vlc/plugins -exec touch -d @1 '{}' ';' 78 + $out/lib/vlc/vlc-cache-gen $out/vlc/plugins 79 ''; 80 81 + # Most of the libraries are auto-detected so we don't need to set a bunch of 82 + # "--enable-foo" flags here 83 + configureFlags = [ 84 + "--with-kde-solid=$out/share/apps/solid/actions" 85 + ] ++ optional onlyLibVLC "--disable-vlc"; 86 + 87 meta = with stdenv.lib; { 88 description = "Cross-platform media player and streaming server"; 89 homepage = http://www.videolan.org/vlc/; 90 license = licenses.lgpl21Plus; 91 + platforms = platforms.linux; 92 }; 93 }
+1 -1
pkgs/applications/video/vlc/plugin.nix
··· 5 6 stdenv.mkDerivation rec { 7 name = "vlc-plugin-${version}"; 8 - version = "2.2.2"; # This 2.2.2 builds fine with vlc 2.2.4 9 10 src = fetchgit { 11 url = "https://code.videolan.org/videolan/npapi-vlc.git";
··· 5 6 stdenv.mkDerivation rec { 7 name = "vlc-plugin-${version}"; 8 + version = "2.2.2"; # This 2.2.2 builds fine with vlc 3.0.3 9 10 src = fetchgit { 11 url = "https://code.videolan.org/videolan/npapi-vlc.git";
+10 -9
pkgs/development/libraries/phonon/backends/vlc.nix
··· 1 { stdenv, lib, fetchurl, cmake, phonon, pkgconfig, vlc 2 , extra-cmake-modules, qtbase ? null, qtx11extras ? null, qt4 ? null 3 - , withQt5 ? false 4 , debug ? false 5 }: 6 7 with lib; 8 9 let 10 - v = "0.9.0"; 11 pname = "phonon-backend-vlc"; 12 in 13 14 - assert withQt5 -> qtbase != null; 15 - assert withQt5 -> qtx11extras != null; 16 17 stdenv.mkDerivation rec { 18 - name = "${pname}-${if withQt5 then "qt5" else "qt4"}-${v}"; 19 20 meta = with stdenv.lib; { 21 homepage = https://phonon.kde.org/; ··· 25 26 src = fetchurl { 27 url = "mirror://kde/stable/phonon/${pname}/${v}/${pname}-${v}.tar.xz"; 28 - sha256 = "1gnd1j305mqajw5gxm42vg6ajkvi8611bxgc3qhj5k0saz5dgkn0"; 29 }; 30 31 buildInputs = 32 [ phonon vlc ] 33 - ++ (if withQt5 then [ qtbase qtx11extras ] else [ qt4 ]); 34 35 - nativeBuildInputs = [ cmake pkgconfig ] ++ optional withQt5 extra-cmake-modules; 36 37 cmakeFlags = 38 [ "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}" ] 39 - ++ optional withQt5 "-DPHONON_BUILD_PHONON4QT5=ON"; 40 }
··· 1 { stdenv, lib, fetchurl, cmake, phonon, pkgconfig, vlc 2 , extra-cmake-modules, qtbase ? null, qtx11extras ? null, qt4 ? null 3 + , withQt4 ? false 4 , debug ? false 5 }: 6 7 with lib; 8 9 let 10 + v = "0.10.1"; 11 pname = "phonon-backend-vlc"; 12 in 13 14 + assert withQt4 -> qt4 != null; 15 + assert !withQt4 -> qtbase != null; 16 + assert !withQt4 -> qtx11extras != null; 17 18 stdenv.mkDerivation rec { 19 + name = "${pname}-${if withQt4 then "qt4" else "qt5"}-${v}"; 20 21 meta = with stdenv.lib; { 22 homepage = https://phonon.kde.org/; ··· 26 27 src = fetchurl { 28 url = "mirror://kde/stable/phonon/${pname}/${v}/${pname}-${v}.tar.xz"; 29 + sha256 = "0b87mzkw9fdkrwgnh1kw5i5wnrd05rl42hynlykb7cfymsk6v5h9"; 30 }; 31 32 buildInputs = 33 [ phonon vlc ] 34 + ++ (if withQt4 then [ qt4 ] else [ qtbase qtx11extras ]); 35 36 + nativeBuildInputs = [ cmake pkgconfig ] ++ optional (!withQt4) extra-cmake-modules; 37 38 cmakeFlags = 39 [ "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}" ] 40 + ++ optional (!withQt4) "-DPHONON_BUILD_PHONON4QT5=ON"; 41 }
+4 -13
pkgs/top-level/all-packages.nix
··· 11179 withQt5 = true; 11180 }; 11181 11182 - phonon-backend-vlc = callPackage ../development/libraries/phonon/backends/vlc.nix { 11183 - withQt5 = true; 11184 - }; 11185 11186 polkit-qt = callPackage ../development/libraries/polkit-qt-1/qt-5.nix { }; 11187 ··· 11215 11216 telepathy = callPackage ../development/libraries/telepathy/qt { }; 11217 11218 - vlc = lowPrio (callPackage ../applications/video/vlc { 11219 - qt4 = null; 11220 - withQt5 = true; 11221 - ffmpeg = ffmpeg_2; 11222 - }); 11223 11224 qtwebkit-plugins = callPackage ../development/libraries/qtwebkit-plugins { }; 11225 ··· 18173 18174 vkeybd = callPackage ../applications/audio/vkeybd {}; 18175 18176 - vlc = callPackage ../applications/video/vlc { 18177 - ffmpeg = ffmpeg_2; 18178 - libva = libva-full; # also wants libva-x11 18179 - }; 18180 18181 vlc_npapi = callPackage ../applications/video/vlc/plugin.nix { 18182 gtk = gtk2; 18183 }; 18184 18185 - vlc_qt5 = libsForQt5.vlc; 18186 18187 vmpk = callPackage ../applications/audio/vmpk { }; 18188
··· 11179 withQt5 = true; 11180 }; 11181 11182 + phonon-backend-vlc = callPackage ../development/libraries/phonon/backends/vlc.nix { }; 11183 11184 polkit-qt = callPackage ../development/libraries/polkit-qt-1/qt-5.nix { }; 11185 ··· 11213 11214 telepathy = callPackage ../development/libraries/telepathy/qt { }; 11215 11216 + vlc = callPackage ../applications/video/vlc { }; 11217 11218 qtwebkit-plugins = callPackage ../development/libraries/qtwebkit-plugins { }; 11219 ··· 18167 18168 vkeybd = callPackage ../applications/audio/vkeybd {}; 18169 18170 + vlc = libsForQt5.vlc; 18171 18172 vlc_npapi = callPackage ../applications/video/vlc/plugin.nix { 18173 gtk = gtk2; 18174 }; 18175 18176 + vlc_qt5 = vlc; 18177 18178 vmpk = callPackage ../applications/audio/vmpk { }; 18179