grub2: switch to release tarball
for the localization files
This commit is contained in:
parent
650120d8f9
commit
76e515cb26
@ -1,4 +1,4 @@
|
|||||||
{ lib, stdenv, fetchgit, flex, bison, python3, autoconf, automake, gnulib, libtool
|
{ lib, stdenv, fetchurl, flex, bison, python3, autoreconfHook, gnulib, libtool
|
||||||
, gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2, unifont, pkg-config
|
, gettext, ncurses, libusb-compat-0_1, freetype, qemu, lvm2, unifont, pkg-config
|
||||||
, buildPackages
|
, buildPackages
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
@ -51,10 +51,9 @@ stdenv.mkDerivation rec {
|
|||||||
pname = "grub";
|
pname = "grub";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchurl {
|
||||||
url = "git://git.savannah.gnu.org/grub.git";
|
url = "mirror://gnu/grub/grub-${version}.tar.xz";
|
||||||
rev = "${pname}-${version}";
|
sha256 = "sha256-t56kSvkbk9F80/6Ava5u1DdwZ4qaWuGSzOqAPrtlfuE=";
|
||||||
sha256 = "1vkxr6b4p7h259vayjw8bfgqj57x68byy939y4bmyaz6g7fgrv0f";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -75,7 +74,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
||||||
nativeBuildInputs = [ bison flex python3 pkg-config autoconf automake gettext freetype ];
|
nativeBuildInputs = [ bison flex python3 pkg-config gettext freetype autoreconfHook ];
|
||||||
buildInputs = [ ncurses libusb-compat-0_1 freetype lvm2 fuse libtool ]
|
buildInputs = [ ncurses libusb-compat-0_1 freetype lvm2 fuse libtool ]
|
||||||
++ optional doCheck qemu
|
++ optional doCheck qemu
|
||||||
++ optional zfsSupport zfs;
|
++ optional zfsSupport zfs;
|
||||||
@ -109,8 +108,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
|
|
||||||
./bootstrap --no-git --gnulib-srcdir=${gnulib}
|
|
||||||
|
|
||||||
substituteInPlace ./configure --replace '/usr/share/fonts/unifont' '${unifont}/share/fonts'
|
substituteInPlace ./configure --replace '/usr/share/fonts/unifont' '${unifont}/share/fonts'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user