mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
3e32488049
svn path=/nixpkgs/trunk/; revision=3307
30 lines
923 B
Nix
30 lines
923 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.0.1";
|
|
builder = ./builder.sh;
|
|
src = fetchurl {
|
|
url = http://heanet.dl.sourceforge.net/sourceforge/xine/xine-lib-1.0.1.tar.gz;
|
|
md5 = "9be804b337c6c3a2e202c5a7237cb0f8";
|
|
};
|
|
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];
|
|
}
|