xine-lib: ffmpeg_3 -> ffmpeg

And refactor.

+65 -14
+65 -14
pkgs/development/libraries/xine-lib/default.nix
··· 1 - { lib, stdenv, fetchurl, pkg-config, xorg, alsaLib, libGLU, libGL, aalib 2 - , libvorbis, libtheora, speex, zlib, perl, ffmpeg_3 3 - , flac, libcaca, libpulseaudio, libmng, libcdio, libv4l, vcdimager 4 - , libmpcdec, ncurses 5 }: 6 7 stdenv.mkDerivation rec { ··· 10 11 src = fetchurl { 12 url = "mirror://sourceforge/xine/xine-lib-${version}.tar.xz"; 13 - sha256 = "01bhq27g5zbgy6y36hl7lajz1nngf68vs4fplxgh98fx20fv4lgg"; 14 }; 15 16 - nativeBuildInputs = [ pkg-config perl ]; 17 18 - buildInputs = [ 19 - xorg.libX11 xorg.libXv xorg.libXinerama xorg.libxcb xorg.libXext 20 - alsaLib libGLU libGL aalib libvorbis libtheora speex perl ffmpeg_3 flac 21 - libcaca libpulseaudio libmng libcdio libv4l vcdimager libmpcdec ncurses 22 ]; 23 24 NIX_LDFLAGS = "-lxcb-shm"; 25 26 - propagatedBuildInputs = [zlib]; 27 - 28 enableParallelBuilding = true; 29 30 meta = with lib; { 31 - homepage = "http://xine.sourceforge.net/home"; 32 description = "A high-performance, portable and reusable multimedia playback engine"; 33 - platforms = platforms.linux; 34 license = with licenses; [ gpl2Plus lgpl2Plus ]; 35 }; 36 }
··· 1 + { lib 2 + , stdenv 3 + , fetchurl 4 + , fetchpatch 5 + , aalib 6 + , alsaLib 7 + , ffmpeg 8 + , flac 9 + , libGL 10 + , libGLU 11 + , libcaca 12 + , libcdio 13 + , libmng 14 + , libmpcdec 15 + , libpulseaudio 16 + , libtheora 17 + , libv4l 18 + , libvorbis 19 + , perl 20 + , pkg-config 21 + , speex 22 + , vcdimager 23 + , xorg 24 + , zlib 25 }: 26 27 stdenv.mkDerivation rec { ··· 30 31 src = fetchurl { 32 url = "mirror://sourceforge/xine/xine-lib-${version}.tar.xz"; 33 + sha256 = "sha256-71GyHRDdoQRfp9cRvZFxz9rwpaKHQjO88W/98o7AcAU="; 34 }; 35 36 + nativeBuildInputs = [ 37 + pkg-config 38 + perl 39 + ]; 40 + buildInputs = [ 41 + aalib 42 + alsaLib 43 + ffmpeg 44 + flac 45 + libGL 46 + libGLU 47 + libcaca 48 + libcdio 49 + libmng 50 + libmpcdec 51 + libpulseaudio 52 + libtheora 53 + libv4l 54 + libvorbis 55 + perl 56 + speex 57 + vcdimager 58 + zlib 59 + ] ++ (with xorg; [ 60 + libX11 61 + libXext 62 + libXinerama 63 + libXv 64 + libxcb 65 + ]); 66 67 + patches = [ 68 + # splitting path plugin 69 + (fetchpatch { 70 + name = "0001-fix-XINE_PLUGIN_PATH-splitting.patch"; 71 + url = "https://sourceforge.net/p/xine/mailman/attachment/32394053-5e27-6558-f0c9-49e0da0bc3cc%40gmx.de/1/"; 72 + sha256 = "sha256-LJedxrD8JWITDo9pnS9BCmy7wiPTyJyoQ1puX49tOls="; 73 + }) 74 ]; 75 76 NIX_LDFLAGS = "-lxcb-shm"; 77 78 enableParallelBuilding = true; 79 80 meta = with lib; { 81 + homepage = "http://www.xinehq.de/"; 82 description = "A high-performance, portable and reusable multimedia playback engine"; 83 license = with licenses; [ gpl2Plus lgpl2Plus ]; 84 + maintainers = with maintainers; [ AndersonTorres ]; 85 + platforms = platforms.linux; 86 }; 87 }