Merge pull request #150864 from krav/krav/vlc-headphones

vlc: fix headphones mode; libspatialaudio: init at 0.3.0

authored by Thiago Kenji Okada and committed by GitHub beef0af4 d5b0e12d

+36 -3
+9 -3
pkgs/applications/video/vlc/default.nix
··· 7 7 , mpeg2dec, systemd, gnutls, avahi, libcddb, libjack2, SDL, SDL_image 8 8 , libmtp, unzip, taglib, libkate, libtiger, libv4l, samba, libssh2, liboggz 9 9 , libass, libva, libdvbpsi, libdc1394, libraw1394, libopus 10 - , libvdpau, libsamplerate, live555, fluidsynth, wayland, wayland-protocols 11 - , ncurses, srt 10 + , libvdpau, libsamplerate, libspatialaudio, live555, fluidsynth 11 + , wayland, wayland-protocols, ncurses, srt 12 12 , onlyLibVLC ? false 13 13 , withQt5 ? true, qtbase, qtsvg, qtx11extras, wrapQtAppsHook 14 14 , jackSupport ? false ··· 43 43 libkate libtiger libv4l samba libssh2 liboggz libass libdvbpsi libva 44 44 xorg.xlibsWrapper xorg.libXv xorg.libXvMC xorg.libXpm xorg.xcbutilkeysyms 45 45 libdc1394 libraw1394 libopus libebml libmatroska libvdpau libsamplerate 46 - fluidsynth wayland wayland-protocols ncurses srt 46 + libspatialaudio fluidsynth wayland wayland-protocols ncurses srt 47 47 ] ++ optional (!stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isAarch32) live555 48 48 ++ optionals withQt5 [ qtbase qtsvg qtx11extras ] 49 49 ++ optionals skins2Support (with xorg; [ libXpm freetype libXext libXinerama ]) ··· 99 99 # Remove runtime dependencies on libraries 100 100 postConfigure = '' 101 101 sed -i 's|^#define CONFIGURE_LINE.*$|#define CONFIGURE_LINE "<removed>"|g' config.h 102 + ''; 103 + 104 + # Add missing SOFA files 105 + # Given in EXTRA_DIST, but not in install-data target 106 + postInstall = '' 107 + cp -R share/hrtfs $out/share/vlc 102 108 ''; 103 109 104 110 meta = with lib; {
+25
pkgs/development/libraries/libspatialaudio/default.nix
··· 1 + { lib, stdenv, cmake, fetchFromGitHub, libmysofa, zlib }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "libspatialaudio"; 5 + version = "0.3.0"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "videolabs"; 9 + repo = "libspatialaudio"; 10 + rev = version; 11 + hash = "sha256-sPnQPD41AceXM4uGqWXMYhuQv0TUkA6TZP8ChxUFIoI="; 12 + }; 13 + 14 + nativeBuildInputs = [ cmake ]; 15 + buildInputs = [ libmysofa zlib ]; 16 + 17 + meta = with lib; { 18 + description = 19 + "Ambisonic encoding / decoding and binauralization library in C++"; 20 + homepage = "https://github.com/videolabs/libspatialaudio"; 21 + license = licenses.lgpl21Plus; 22 + platforms = platforms.linux; 23 + maintainers = with maintainers; [ krav ]; 24 + }; 25 + }
+2
pkgs/top-level/all-packages.nix
··· 18345 18345 18346 18346 libstrophe = callPackage ../development/libraries/libstrophe { }; 18347 18347 18348 + libspatialaudio = callPackage ../development/libraries/libspatialaudio { }; 18349 + 18348 18350 libspatialindex = callPackage ../development/libraries/libspatialindex { }; 18349 18351 18350 18352 libspatialite = callPackage ../development/libraries/libspatialite { };