2006-01-26 15:01:08 +01:00
|
|
|
{stdenv, fetchurl, x11, openglSupport ? false, mesa ? null}:
|
|
|
|
|
|
|
|
assert openglSupport -> mesa != null;
|
2004-09-26 20:12:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2005-12-03 02:33:18 +01:00
|
|
|
name = "SDL-1.2.9";
|
2004-09-26 20:12:51 +02:00
|
|
|
src = fetchurl {
|
2005-12-03 02:33:18 +01:00
|
|
|
url = http://www.libsdl.org/release/SDL-1.2.9.tar.gz;
|
|
|
|
md5 = "80919ef556425ff82a8555ff40a579a0";
|
2004-09-26 20:12:51 +02:00
|
|
|
};
|
2006-01-26 15:01:08 +01:00
|
|
|
buildInputs = [
|
|
|
|
x11
|
|
|
|
(if openglSupport then mesa else null)
|
|
|
|
];
|
2005-07-12 13:28:43 +02:00
|
|
|
patches = [./no-cxx.patch];
|
2005-12-03 02:33:18 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-DBITS_PER_LONG=32"; /* !!! hack around kernel header bug */
|
2006-01-26 15:01:08 +01:00
|
|
|
inherit openglSupport;
|
2004-09-26 20:12:51 +02:00
|
|
|
}
|