summary refs log tree commit diff
path: root/pkgs/tools/misc/grub
diff options
context:
space:
mode:
authorKarn Kallio <tierpluspluslists@gmail.com>2011-03-09 18:58:09 +0000
committerKarn Kallio <tierpluspluslists@gmail.com>2011-03-09 18:58:09 +0000
commitf5eba6cc5d59b41b085eed2bd3efe6cc32602164 (patch)
treecc3f9c41e7153f1d1ba151aa3c7d9931a4b782b4 /pkgs/tools/misc/grub
parent19d1236a5235892fc7f1b0af60bda33cc374d7fe (diff)
downloadnixlib-f5eba6cc5d59b41b085eed2bd3efe6cc32602164.tar
nixlib-f5eba6cc5d59b41b085eed2bd3efe6cc32602164.tar.gz
nixlib-f5eba6cc5d59b41b085eed2bd3efe6cc32602164.tar.bz2
nixlib-f5eba6cc5d59b41b085eed2bd3efe6cc32602164.tar.lz
nixlib-f5eba6cc5d59b41b085eed2bd3efe6cc32602164.tar.xz
nixlib-f5eba6cc5d59b41b085eed2bd3efe6cc32602164.tar.zst
nixlib-f5eba6cc5d59b41b085eed2bd3efe6cc32602164.zip
Fix grub error "cp cannot stat .... unicode.pf2
-- change postPatch hook to prePatch (postPatch is not run with empty patchset)
-- make the share/grub directory and copy unicode.pf2 there

svn path=/nixpkgs/trunk/; revision=26239
Diffstat (limited to 'pkgs/tools/misc/grub')
-rw-r--r--pkgs/tools/misc/grub/1.9x.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/tools/misc/grub/1.9x.nix b/pkgs/tools/misc/grub/1.9x.nix
index 041f4f8fedc4..fdaf943653b4 100644
--- a/pkgs/tools/misc/grub/1.9x.nix
+++ b/pkgs/tools/misc/grub/1.9x.nix
@@ -41,12 +41,17 @@ stdenv.mkDerivation rec {
            -e's/qemu-system-i386/qemu-system-x86_64 -nodefaults/g'
     '';
 
-  postPatch =
+  prePatch =
     '' gunzip < "${unifont_bdf}" > "unifont.bdf"
        sed -i "configure" \
            -e "s|/usr/src/unifont.bdf|$PWD/unifont.bdf|g"
     '';
 
+  postInstall = ''
+    ensureDir ./share/grub
+    cp ./unicode.pf2 ./share/grub/ 
+  '';
+
   configureFlags =
     let arch = if stdenv.system == "i686-linux" then "i386"
                else if stdenv.system == "x86_64-linux" then "x86_64"