git.iko.soy/typeable/nixpkgs
on master help sign in
grub2: 2.x-2015-11-16 -> 2.02

Fixes #24451.

commit3317c71c5c629939e434288390c1d26506160d13 authorFranz Pletz <fpletz@fnordicwalking.de> dateSat 12 Aug 2017, 00:54 (9 years ago) parente615745
1 file changed+10−28
pkgs/tools/misc/grub/2.0x.nix+10−28
pkgs/tools/misc/grub/2.0x.nix+10−28
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, fetchFromSavannah, autogen, flex, bison, python, autoconf, automake
2−, gettext, ncurses, libusb, freetype, qemu, devicemapper
2+, gettext, ncurses, libusb, freetype, qemu, devicemapper, unifont
33, zfs ? null
44, efiSupport ? false
55, zfsSupport ? true
@@ -30,18 +30,7 @@ let
3030 canEfi = any (system: stdenv.system == system) (mapAttrsToList (name: _: name) efiSystemsBuild);
3131 inPCSystems = any (system: stdenv.system == system) (mapAttrsToList (name: _: name) pcSystems);
3232
33− version = "2.x-2015-11-16";
34−
35− unifont_bdf = fetchurl {
36− url = "http://unifoundry.com/unifont-5.1.20080820.bdf.gz";
37− sha256 = "0s0qfff6n6282q28nwwblp5x295zd6n71kl43xj40vgvdqxv0fxx";
38− };
39−
40− po_src = fetchurl {
41− name = "grub-2.02-beta2.tar.gz";
42− url = "http://alpha.gnu.org/gnu/grub/grub-2.02~beta2.tar.gz";
43− sha256 = "1lr9h3xcx0wwrnkxdnkfjwy08j7g7mdlmmbdip2db4zfgi69h0rm";
44− };
33+ version = "2.02";
4534
4635in (
4736
@@ -52,13 +41,12 @@ assert !(efiSupport && xenSupport);
5241stdenv.mkDerivation rec {
5342 name = "grub-${version}";
5443
55− src = fetchFromSavannah {
56− repo = "grub";
57− rev = "50d6f38febe80d4d3088dae1ee639b341787ab71";
58− sha256 = "1pyn2qa8hwiabhgnzj86y4b69y4a37dh5n0j4csmm7xmgc13vvww";
44+ src = fetchurl {
45+ url = "mirror://gnu/grub/${name}.tar.xz";
46+ sha256 = "03vvdfhdmf16121v7xs8is2krwnv15wpkhkf16a4yf8nsfc3f2w1";
5947 };
6048
61− nativeBuildInputs = [ autogen flex bison python autoconf automake ];
49+ nativeBuildInputs = [ bison flex python ];
6250 buildInputs = [ ncurses libusb freetype gettext devicemapper ]
6351 ++ optional doCheck qemu
6452 ++ optional zfsSupport zfs;
@@ -68,6 +56,10 @@ stdenv.mkDerivation rec {
6856 # Work around a bug in the generated flex lexer (upstream flex bug?)
6957 NIX_CFLAGS_COMPILE = "-Wno-error";
7058
59+ postPatch = ''
60+ substituteInPlace ./configure --replace '/usr/share/fonts/unifont' '${unifont}/share/fonts'
61+ '';
62+
7163 preConfigure =
7264 '' for i in "tests/util/"*.in
7365 do
@@ -89,16 +81,6 @@ stdenv.mkDerivation rec {
8981 unset CPP # setting CPP intereferes with dependency calculation
9082 '';
9183
92− prePatch =
93− '' tar zxf ${po_src} grub-2.02~beta2/po
94− rm -rf po
95− mv grub-2.02~beta2/po po
96− sh autogen.sh
97− gunzip < "${unifont_bdf}" > "unifont.bdf"
98− sed -i "configure" \
99− -e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g"
100− '';
101−
10284 patches = [ ./fix-bash-completion.patch ];
10385
10486 configureFlags = optional zfsSupport "--enable-libzfs"