xine-lib: ffmpeg_3 -> ffmpeg

And refactor.
This commit is contained in:
AndersonTorres 2021-04-30 17:50:49 -03:00
parent 8518bfeae1
commit f223a67c65

View file

@ -1,7 +1,27 @@
{ lib, stdenv, fetchurl, pkg-config, xorg, alsaLib, libGLU, libGL, aalib
, libvorbis, libtheora, speex, zlib, perl, ffmpeg_3
, flac, libcaca, libpulseaudio, libmng, libcdio, libv4l, vcdimager
, libmpcdec, ncurses
{ lib
, stdenv
, fetchurl
, fetchpatch
, aalib
, alsaLib
, ffmpeg
, flac
, libGL
, libGLU
, libcaca
, libcdio
, libmng
, libmpcdec
, libpulseaudio
, libtheora
, libv4l
, libvorbis
, perl
, pkg-config
, speex
, vcdimager
, xorg
, zlib
}:
stdenv.mkDerivation rec {
@ -10,27 +30,58 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "mirror://sourceforge/xine/xine-lib-${version}.tar.xz";
sha256 = "01bhq27g5zbgy6y36hl7lajz1nngf68vs4fplxgh98fx20fv4lgg";
sha256 = "sha256-71GyHRDdoQRfp9cRvZFxz9rwpaKHQjO88W/98o7AcAU=";
};
nativeBuildInputs = [ pkg-config perl ];
nativeBuildInputs = [
pkg-config
perl
];
buildInputs = [
xorg.libX11 xorg.libXv xorg.libXinerama xorg.libxcb xorg.libXext
alsaLib libGLU libGL aalib libvorbis libtheora speex perl ffmpeg_3 flac
libcaca libpulseaudio libmng libcdio libv4l vcdimager libmpcdec ncurses
aalib
alsaLib
ffmpeg
flac
libGL
libGLU
libcaca
libcdio
libmng
libmpcdec
libpulseaudio
libtheora
libv4l
libvorbis
perl
speex
vcdimager
zlib
] ++ (with xorg; [
libX11
libXext
libXinerama
libXv
libxcb
]);
patches = [
# splitting path plugin
(fetchpatch {
name = "0001-fix-XINE_PLUGIN_PATH-splitting.patch";
url = "https://sourceforge.net/p/xine/mailman/attachment/32394053-5e27-6558-f0c9-49e0da0bc3cc%40gmx.de/1/";
sha256 = "sha256-LJedxrD8JWITDo9pnS9BCmy7wiPTyJyoQ1puX49tOls=";
})
];
NIX_LDFLAGS = "-lxcb-shm";
propagatedBuildInputs = [zlib];
enableParallelBuilding = true;
meta = with lib; {
homepage = "http://xine.sourceforge.net/home";
homepage = "http://www.xinehq.de/";
description = "A high-performance, portable and reusable multimedia playback engine";
platforms = platforms.linux;
license = with licenses; [ gpl2Plus lgpl2Plus ];
maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.linux;
};
}