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