2018-10-10 13:25:14 -07:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, texinfo, buggyBiosCDSupport ? true }:
|
2005-07-18 02:18:07 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2018-09-16 19:47:56 -07:00
|
|
|
name = "grub-0.97-73";
|
2013-04-05 16:00:50 -07:00
|
|
|
|
2005-07-18 02:18:07 -07:00
|
|
|
src = fetchurl {
|
2020-03-31 18:11:51 -07:00
|
|
|
url = "https://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz";
|
2014-10-12 07:13:21 -07:00
|
|
|
sha256 = "02r6b52r0nsp6ryqfiqchnl7r1d9smm80sqx24494gmx5p8ia7af";
|
2005-07-18 02:18:07 -07:00
|
|
|
};
|
2008-01-16 05:26:57 -08:00
|
|
|
|
2008-09-18 02:43:31 -07: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-16 19:47:56 -07:00
|
|
|
]
|
|
|
|
++ (stdenv.lib.optional buggyBiosCDSupport ./buggybios.patch)
|
|
|
|
++ map fetchurl (import ./grub1.patches.nix)
|
|
|
|
;
|
2008-09-18 02:43:31 -07:00
|
|
|
|
2016-01-17 15:04:40 -08:00
|
|
|
# autoreconfHook required for the splashimage patch.
|
2017-09-05 14:26:13 -07:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ texinfo ];
|
2008-01-03 08:56:03 -08:00
|
|
|
|
2018-09-16 19:47:56 -07:00
|
|
|
hardeningDisable = [ "format" "stackprotector" ];
|
2008-09-18 02:43:31 -07:00
|
|
|
|
2015-02-08 19:28:42 -08:00
|
|
|
passthru.grubTarget = "";
|
|
|
|
|
2018-08-16 13:04:31 -07:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://www.gnu.org/software/grub";
|
2018-10-10 13:25:14 -07:00
|
|
|
description = "GRand Unified Bootloader";
|
2018-08-16 13:04:31 -07:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2015-03-20 08:52:02 -07:00
|
|
|
};
|
2005-07-18 02:18:07 -07:00
|
|
|
}
|