2006-01-26 14:01:08 +00:00
|
|
|
{stdenv, fetchurl, x11, openglSupport ? false, mesa ? null}:
|
|
|
|
|
|
|
|
assert openglSupport -> mesa != null;
|
2004-09-26 19:12:51 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-12-03 01:33:18 +00:00
|
|
|
name = "SDL-1.2.9";
|
2004-09-26 19:12:51 +01:00
|
|
|
src = fetchurl {
|
2006-01-30 16:04:03 +00:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/SDL-1.2.9.tar.gz;
|
2005-12-03 01:33:18 +00:00
|
|
|
md5 = "80919ef556425ff82a8555ff40a579a0";
|
2004-09-26 19:12:51 +01:00
|
|
|
};
|
2006-01-26 14:01:08 +00:00
|
|
|
buildInputs = [
|
|
|
|
x11
|
|
|
|
(if openglSupport then mesa else null)
|
|
|
|
];
|
2005-07-12 12:28:43 +01:00
|
|
|
patches = [./no-cxx.patch];
|
2005-12-03 01:33:18 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DBITS_PER_LONG=32"; /* !!! hack around kernel header bug */
|
2006-01-26 14:01:08 +00:00
|
|
|
inherit openglSupport;
|
2004-09-26 19:12:51 +01:00
|
|
|
}
|