mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
607b0d3e80
find . -name "*.nix" | while read fn; do sed 's^http://[a-z]*.dl.sourceforge.net/sourceforge/^mirror://sourceforge/^g' < $fn > $fn.new; mv $fn.new $fn; done svn path=/nixpkgs/trunk/; revision=9198
31 lines
967 B
Nix
31 lines
967 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.7";
|
|
builder = ./builder.sh;
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/xine/xine-lib-1.1.7.tar.bz2;
|
|
sha256 = "1aycmhvq95gbb5mqw5skgcxyn4nh5qkzq21yclnqk5yzflpwwvvg";
|
|
};
|
|
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;}
|