nixpkgs/pkgs/development/libraries/xine-lib/default.nix
Eelco Dolstra 3389f4bc36 * Copy lots of files to nix.cs.uu.nl.
svn path=/nixpkgs/trunk/; revision=4623
2006-01-30 16:04:03 +00:00

31 lines
951 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.0";
builder = ./builder.sh;
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/xine-lib-1.1.0.tar.gz;
md5 = "3537cfd58d253b4be20a4975e7086e38";
};
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];
}) // {inherit xineramaSupport libXinerama;}