2008-01-22 16:26:57 +00:00
|
|
|
{cabal, libX11, xineramaSupport ? true, libXinerama ? null, libXext ? null}:
|
2008-01-16 10:35:49 +00:00
|
|
|
|
|
|
|
assert xineramaSupport -> (libXinerama != null && libXext != null);
|
|
|
|
|
2008-01-22 16:26:57 +00:00
|
|
|
cabal.mkDerivation (self : {
|
2008-01-16 10:35:49 +00:00
|
|
|
pname = "X11";
|
2008-04-15 21:03:25 +01:00
|
|
|
version = "1.4.2";
|
|
|
|
sha256 = "7a37ba1adee9c30a27013ea7058e907c2348ef08eaa79c9895e62e4f0d73d2aa";
|
2008-01-22 16:26:57 +00:00
|
|
|
propagatedBuildInputs = [libX11] ++ (if xineramaSupport then [libXinerama libXext] else []);
|
2008-01-16 10:35:49 +00:00
|
|
|
meta = {
|
|
|
|
description = "A Haskell binding to the X11 graphics library";
|
|
|
|
};
|
|
|
|
})
|