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