-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrub.nix
34 lines (26 loc) · 799 Bytes
/
grub.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ stdenv, coreboot-toolchain
, autoconf, automake, gettext, pkg-config, unifont
, bison, flex, python3, freetype
, src, gnulib-src, libreboot
}:
stdenv.mkDerivation {
name = "grub-coreboot";
nativeBuildInputs = [ coreboot-toolchain.i386 autoconf automake gettext pkg-config bison flex python3 freetype ];
inherit src;
patches = [
"${libreboot}/resources/grub/patches/0001-mitigate-grub-s-missing-characters-for-borders-arrow.patch"
];
postPatch = ''
cp -r ${gnulib-src} gnulib
chmod -R a+w .
patchShebangs .
'';
preConfigure = ''
./bootstrap --no-git --gnulib-srcdir=gnulib/
./autogen.sh
substituteInPlace ./configure --replace '/usr/share/fonts/unifont' '${unifont}/share/fonts'
'';
configureFlags = [
"--with-platform=coreboot"
];
}