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

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

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