nixpkgs/pkgs/development/libraries/xine-lib/default.nix
Yury G. Kudryashov 70c3785081 xine-lib: now compiles with 2.6.23 headers
svn path=/nixpkgs/branches/stdenv-updates/; revision=9947
2007-12-15 23:46:42 +00:00

32 lines
1,022 B
Nix

{ xvideoSupport ? true
, xineramaSupport ? true
, encryptedDVDSupport ? true
, alsaSupport ? true
, stdenv, fetchurl, zlib, x11
, libXv ? null, libXinerama ? null, libdvdcss ? null, alsaLib ? null
}:
assert xvideoSupport -> libXv != null;
assert xineramaSupport -> libXinerama != null;
assert encryptedDVDSupport -> libdvdcss != null;
assert alsaSupport -> alsaLib != null;
(stdenv.mkDerivation {
name = "xine-lib-1.1.8";
builder = ./builder.sh;
src = fetchurl {
url = mirror://sourceforge/xine/xine-lib-1.1.8.tar.bz2;
sha256 = "03iwhgsf9kj0x5b4fgv7lzc1vj3frk4afh2idgrqskvixjyi37vc";
};
buildInputs = [
x11
(if xvideoSupport then libXv else null)
(if xineramaSupport then libXinerama else null)
(if alsaSupport then alsaLib else null)
];
libXv = if xvideoSupport then libXv else null;
libdvdcss = if encryptedDVDSupport then libdvdcss else null;
propagatedBuildInputs = [zlib];
patches = [ ./xine-lib-linux-headers-2.6.23.patch ];
}) // {inherit xineramaSupport libXinerama;}