2016-01-17 23:04:40 +00:00
|
|
|
{stdenv, fetchurl, autoreconfHook, texinfo, buggyBiosCDSupport ? true}:
|
2005-07-18 09:18:07 +00:00
|
|
|
|
2018-09-17 02:47:56 +00:00
|
|
|
let
|
|
|
|
in
|
2005-07-18 09:18:07 +00:00
|
|
|
stdenv.mkDerivation {
|
2018-09-17 02:47:56 +00:00
|
|
|
name = "grub-0.97-73";
|
2013-04-05 23:00:50 +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;
|
2014-10-12 14:13:21 +00:00
|
|
|
sha256 = "02r6b52r0nsp6ryqfiqchnl7r1d9smm80sqx24494gmx5p8ia7af";
|
2005-07-18 09:18:07 +00:00
|
|
|
};
|
2008-01-16 13:26:57 +00:00
|
|
|
|
2008-09-18 09:43:31 +00:00
|
|
|
patches = [
|
|
|
|
# Properly handle the case of symlinks such as
|
|
|
|
# /dev/disk/by-label/bla. The symlink resolution code in
|
|
|
|
# grub-install isn't smart enough.
|
|
|
|
./symlink.patch
|
2018-09-17 02:47:56 +00:00
|
|
|
]
|
|
|
|
++ (stdenv.lib.optional buggyBiosCDSupport ./buggybios.patch)
|
|
|
|
++ map fetchurl (import ./grub1.patches.nix)
|
|
|
|
;
|
2008-09-18 09:43:31 +00:00
|
|
|
|
2016-01-17 23:04:40 +00:00
|
|
|
# autoreconfHook required for the splashimage patch.
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ texinfo ];
|
2008-01-03 16:56:03 +00:00
|
|
|
|
2018-09-17 02:47:56 +00:00
|
|
|
hardeningDisable = [ "format" "stackprotector" ];
|
2008-09-18 09:43:31 +00:00
|
|
|
|
2015-02-09 03:28:42 +00:00
|
|
|
passthru.grubTarget = "";
|
|
|
|
|
2018-08-16 20:04:31 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2015-03-20 15:52:02 +00:00
|
|
|
};
|
2005-07-18 09:18:07 +00:00
|
|
|
}
|