nixpkgs-suyu/pkgs/tools/misc/grub/default.nix
Eelco Dolstra 1c4dd40460 * Grub requires a 32-bit Glibc. So use the i686-linux Grub on
x86_64.  (This fails to build unless Nix knows an i686-linux machine
  or it can get the Grub binary from a channel.)  Very nasty.

svn path=/nixpkgs/trunk/; revision=7757
2007-01-22 19:57:12 +00:00

13 lines
341 B
Nix

{stdenv, fetchurl}:
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
stdenv.mkDerivation {
name = "grub-0.97";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/grub-0.97.tar.gz;
md5 = "cd3f3eb54446be6003156158d51f4884";
};
}