2008-01-03 16:56:03 +00:00
|
|
|
{stdenv, fetchurl, autoconf, automake}:
|
2005-07-18 09:18:07 +00:00
|
|
|
|
2007-01-22 19:57:12 +00:00
|
|
|
if stdenv.system == "x86_64-linux" then
|
|
|
|
abort "Grub doesn't build on x86_64-linux. You should use the build for i686-linux instead."
|
|
|
|
else
|
|
|
|
|
2005-07-18 09:18:07 +00:00
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "grub-0.97";
|
2008-01-03 16:56:03 +00:00
|
|
|
|
2005-07-18 09:18:07 +00:00
|
|
|
src = fetchurl {
|
2007-08-24 12:32:36 +00:00
|
|
|
url = ftp://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz;
|
2005-07-18 09:18:07 +00:00
|
|
|
md5 = "cd3f3eb54446be6003156158d51f4884";
|
|
|
|
};
|
2008-01-03 16:56:03 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Patch to add primitive splash screen support (not the fancy SUSE gfxmenu stuff).
|
|
|
|
# With this you can set splashimage=foo.xpm.gz in menu.lst to get
|
|
|
|
# a 640x480, 14-colour background.
|
|
|
|
(fetchurl {
|
|
|
|
url = "http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/*checkout*/system/grub-gfx/grub-0.97-graphics.patch?rev=HEAD&cvsroot=AUR&only_with_tag=CURRENT&content-type=text/plain";
|
|
|
|
sha256 = "0m6min9cbj71kvp0kxkxdq8dx2dwm3dj0rd5sjz5xdl13ihaj5hy";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
# Autoconf/automake required for the splashimage patch.
|
|
|
|
buildInputs = [autoconf automake];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
autoreconf
|
|
|
|
'';
|
|
|
|
|
2005-07-18 09:18:07 +00:00
|
|
|
}
|