GRUB 2: Add GNU Unifont BDF font.

svn path=/nixpkgs/trunk/; revision=17791
This commit is contained in:
Ludovic Courtès 2009-10-13 21:34:54 +00:00
parent 131c5f7e33
commit 40495327c5

View file

@ -1,5 +1,11 @@
{ fetchurl, stdenv, bison, ncurses, libusb, freetype }:
let unifont_bdf = fetchurl {
url = "http://unifoundry.com/unifont-5.1.20080820.bdf.gz";
sha256 = "0s0qfff6n6282q28nwwblp5x295zd6n71kl43xj40vgvdqxv0fxx";
};
in
stdenv.mkDerivation rec {
name = "grub-1.97beta3";
@ -11,6 +17,12 @@ stdenv.mkDerivation rec {
buildInputs = [ bison ncurses libusb freetype ];
patchPhase =
'' gunzip < "${unifont_bdf}" > "unifont.bdf"
sed -i "configure" \
-e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g"
'';
doCheck = true;
meta = {