mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
GRUB 2: Add GNU Unifont BDF font.
svn path=/nixpkgs/trunk/; revision=17791
This commit is contained in:
parent
131c5f7e33
commit
40495327c5
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user