2006-10-30 14:45:48 +01:00
|
|
|
{stdenv, fetchurl, perl, m4, gcc, modutils}:
|
2004-02-13 15:42:28 +01:00
|
|
|
|
2004-09-19 12:34:01 +02:00
|
|
|
assert perl != null && m4 != null;
|
2004-02-13 15:42:28 +01:00
|
|
|
|
2004-03-29 19:23:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2004-12-09 20:48:40 +01:00
|
|
|
name = "uml-2.4.27-1";
|
2004-02-13 15:42:28 +01:00
|
|
|
builder = ./builder.sh;
|
2004-04-01 22:12:54 +02:00
|
|
|
src = fetchurl {
|
2005-08-22 10:39:27 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/linux-2.4.27.tar.bz2;
|
2004-12-09 20:48:40 +01:00
|
|
|
md5 = "59a2e6fde1d110e2ffa20351ac8b4d9e";
|
2004-02-13 15:42:28 +01:00
|
|
|
};
|
2004-04-01 22:12:54 +02:00
|
|
|
umlPatch = fetchurl {
|
2005-08-22 10:39:27 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/uml-patch-2.4.27-1.bz2;
|
2004-12-09 20:48:40 +01:00
|
|
|
md5 = "63178bbd3a383a1005738f4628ff583e";
|
2004-02-13 15:42:28 +01:00
|
|
|
};
|
2004-07-29 22:20:59 +02:00
|
|
|
noAioPatch = ./no-aio.patch;
|
2004-07-31 19:29:10 +02:00
|
|
|
# hostfsPatch = ./hostfs.patch;
|
|
|
|
# hostfsAccessPatch = ./hostfs-access.patch;
|
2004-02-13 15:42:28 +01:00
|
|
|
config = ./config;
|
2004-09-19 12:34:01 +02:00
|
|
|
buildInputs = [perl m4];
|
2004-09-27 21:50:58 +02:00
|
|
|
NIX_GCC = gcc;
|
2006-10-30 14:45:48 +01:00
|
|
|
|
|
|
|
# Quick hack to get UML to build with the latest kernel headers,
|
|
|
|
# which don't export the macro `offsetof' anymore unless __KERNEL__
|
|
|
|
# is set.
|
|
|
|
NIX_CFLAGS_COMPILE = "-Doffsetof(TYPE,MEMBER)=((size_t)&((TYPE*)0)->MEMBER)";
|
|
|
|
|
|
|
|
inherit modutils;
|
2004-02-13 15:42:28 +01:00
|
|
|
}
|