2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook, texinfo, buggyBiosCDSupport ? true }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "grub-0.97-73";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://alpha.gnu.org/gnu/grub/grub-0.97.tar.gz";
|
|
|
|
sha256 = "02r6b52r0nsp6ryqfiqchnl7r1d9smm80sqx24494gmx5p8ia7af";
|
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
]
|
2021-01-15 22:18:51 +00:00
|
|
|
++ (lib.optional buggyBiosCDSupport ./buggybios.patch)
|
2020-04-24 23:36:52 +00:00
|
|
|
++ map fetchurl (import ./grub1.patches.nix)
|
|
|
|
;
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace ./configure.ac --replace 'AC_PREREQ(2.61)' 'AC_PREREQ(2.64)'
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# autoreconfHook required for the splashimage patch.
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ texinfo ];
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" "stackprotector" ];
|
|
|
|
|
|
|
|
passthru.grubTarget = "";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.gnu.org/software/grub";
|
|
|
|
description = "GRand Unified Bootloader";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|