Skip to content

Commit

Permalink
kodi: fix hw accel
Browse files Browse the repository at this point in the history
Also, drop SDL build inputs. SDL was not even detected/enabled.

(cherry picked from commit 5aa539a)
  • Loading branch information
cpages committed Dec 23, 2017
1 parent 9b59ab7 commit b05d30d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkgs/applications/video/kodi/default.nix
Expand Up @@ -8,8 +8,7 @@
, libXt, libXmu, libXext, xextproto
, libXinerama, libXrandr, randrproto
, libXtst, libXfixes, fixesproto, systemd
, SDL, SDL2, SDL_image, SDL_mixer, alsaLib
, mesa, glew, fontconfig, freetype, ftgl
, alsaLib, mesa, glew, fontconfig, freetype, ftgl
, libjpeg, jasper, libpng, libtiff
, libmpeg2, libsamplerate, libmad
, libogg, libvorbis, flac, libxslt
Expand Down Expand Up @@ -44,6 +43,7 @@ assert vdpauSupport -> libvdpau != null;
# - cmake is no longer in project/cmake
# - maybe we can remove auto{conf,make} and libtool from inputs
# - check if dbus support PR has been merged and add dbus as a buildInput
# - try to use system ffmpeg (kodi 17 works best with bundled 3.1 with patches)

let
kodiReleaseDate = "20171115";
Expand Down Expand Up @@ -78,7 +78,8 @@ let
preConfigure = ''
cp ${kodi_src}/tools/depends/target/ffmpeg/{CMakeLists.txt,*.cmake} .
'';
buildInputs = [ gnutls libidn libtasn1 p11_kit zlib ];
buildInputs = [ gnutls libidn libtasn1 p11_kit zlib libva ]
++ lib.optional vdpauSupport libvdpau;
nativeBuildInputs = [ cmake nasm pkgconfig ];
};

Expand Down Expand Up @@ -124,9 +125,8 @@ in stdenv.mkDerivation rec {
openssl gperf tinyxml2 taglib libssh swig jre
libX11 xproto inputproto libXt libXmu libXext xextproto
libXinerama libXrandr randrproto libXtst libXfixes fixesproto
SDL SDL_image SDL_mixer alsaLib
mesa glew fontconfig freetype ftgl
libjpeg jasper libpng libtiff libva wayland
alsaLib mesa glew fontconfig freetype ftgl
libjpeg jasper libpng libtiff wayland
libmpeg2 libsamplerate libmad
libogg libvorbis flac libxslt systemd
lzo libcdio libmodplug libass libbluray
Expand All @@ -140,7 +140,7 @@ in stdenv.mkDerivation rec {
# libdvdcss libdvdnav libdvdread
]
++ lib.optional dbusSupport dbus_libs
++ lib.optionals joystickSupport [ cwiid SDL2 ]
++ lib.optionals joystickSupport [ cwiid ]
++ lib.optional nfsSupport libnfs
++ lib.optional pulseSupport libpulseaudio
++ lib.optional rtmpSupport rtmpdump
Expand Down Expand Up @@ -189,7 +189,7 @@ in stdenv.mkDerivation rec {
wrapProgram $out/bin/$p \
--prefix PATH ":" "${lib.makeBinPath [ python2 glxinfo xdpyinfo ]}" \
--prefix LD_LIBRARY_PATH ":" "${lib.makeLibraryPath
[ curl systemd libmad libvdpau libcec libcec_platform rtmpdump libass SDL2 ]}"
[ curl systemd libmad libvdpau libcec libcec_platform rtmpdump libass ]}"
done
substituteInPlace $out/share/xsessions/kodi.desktop \
Expand Down

0 comments on commit b05d30d

Please sign in to comment.