nixpkgs/pkgs/applications/video/vlc/default.nix

58 lines
2 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, xz, bzip2, perl, xlibs, libdvdnav, libbluray
, zlib, a52dec, libmad, faad2, ffmpeg, alsaLib
2013-12-08 19:18:59 +01:00
, pkgconfig, dbus, fribidi, qt4, freefont_ttf, libebml, libmatroska
, libvorbis, libtheora, speex, lua5, libgcrypt, libupnp
, libcaca, pulseaudio, flac, schroedinger, libxml2, librsvg
2014-07-28 12:07:44 +02:00
, mpeg2dec, udev, gnutls, avahi, libcddb, jackaudio, SDL, SDL_image
, libmtp, unzip, taglib, libkate, libtiger, libv4l, samba, liboggz
2013-04-07 20:03:30 +02:00
, libass, libva, libdvbpsi, libdc1394, libraw1394, libopus
, libvdpau
}:
stdenv.mkDerivation rec {
2013-09-26 16:37:49 +02:00
name = "vlc-${version}";
2014-07-30 09:31:24 +02:00
version = "2.1.5";
src = fetchurl {
url = "http://download.videolan.org/pub/videolan/vlc/${version}/${name}.tar.xz";
2014-07-30 09:31:24 +02:00
sha256 = "0whzbn7ahn5maarcwl1yhk9lq10b0q0y9w5pjl9kh3frdjmncrbg";
};
buildInputs =
[ xz bzip2 perl zlib a52dec libmad faad2 ffmpeg alsaLib libdvdnav libdvdnav.libdvdread
libbluray dbus fribidi qt4 libvorbis libtheora speex lua5 libgcrypt
libupnp libcaca pulseaudio flac schroedinger libxml2 librsvg mpeg2dec
2014-07-28 12:07:44 +02:00
udev gnutls avahi libcddb jackaudio SDL SDL_image libmtp unzip taglib
libkate libtiger libv4l samba liboggz libass libdvbpsi libva
xlibs.xlibs xlibs.libXv xlibs.libXvMC xlibs.libXpm xlibs.xcbutilkeysyms
libdc1394 libraw1394 libopus libebml libmatroska libvdpau
];
nativeBuildInputs = [ pkgconfig ];
configureFlags =
[ "--enable-alsa"
"--with-kde-solid=$out/share/apps/solid/actions"
"--enable-dc1394"
2014-03-23 17:24:12 +01:00
"--enable-ncurses"
"--enable-vdpau"
];
preConfigure = ''sed -e "s@/bin/echo@echo@g" -i configure'';
enableParallelBuilding = true;
preBuild = ''
substituteInPlace modules/text_renderer/freetype.c --replace \
/usr/share/fonts/truetype/freefont/FreeSerifBold.ttf \
${freefont_ttf}/share/fonts/truetype/FreeSerifBold.ttf
'';
2013-12-08 19:19:11 +01:00
meta = with stdenv.lib; {
description = "Cross-platform media player and streaming server";
homepage = http://www.videolan.org/vlc/;
2013-12-08 19:19:11 +01:00
platforms = platforms.linux;
2014-02-16 16:30:30 +01:00
license = licenses.lgpl21Plus;
};
}