2018-10-10 20:25:14 +00:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, texinfo, buggyBiosCDSupport ? true }:
|
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 {
|
2020-04-01 01:11:51 +00:00
|
|
|
url = "https://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; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gnu.org/software/grub";
|
2018-10-10 20:25:14 +00:00
|
|
|
description = "GRand Unified Bootloader";
|
2018-08-16 20:04:31 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2015-03-20 15:52:02 +00:00
|
|
|
};
|
2005-07-18 09:18:07 +00:00
|
|
|
}
|