summary refs log tree commit diff
path: root/pkgs/development/libraries/haskell/X11/default.nix
blob: c9b57dccf4d95ec6d762c2059f2da44b2fb14fd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
{cabal, libX11, xineramaSupport ? true, libXinerama ? null, libXext ? null}:

assert xineramaSupport -> (libXinerama != null && libXext != null);

cabal.mkDerivation (self : {
  pname = "X11";
  version = "1.4.5";
  sha256 = "6665056b9fe5801ca27bf960a90215c940ae70b549753efed0303d5ed8d89ddb";
  propagatedBuildInputs = [libX11] ++ (if xineramaSupport then [libXinerama libXext] else []);
  meta = {
    description = "A Haskell binding to the X11 graphics library";
  };
})