summary refs log tree commit diff
path: root/pkgs/tools/misc/grub
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2014-09-02 18:57:09 -0700
committerWilliam A. Kennington III <william@wkennington.com>2014-09-02 19:38:52 -0700
commitc369c4afbd8ca0e1d43e53408383bb623fe41a79 (patch)
tree2a1f0ad9b268936d5c9a4d2e27995fb197bfc4a7 /pkgs/tools/misc/grub
parentccc758f414821d7115dfddc3c05ab1adfb1a11f7 (diff)
downloadnixlib-c369c4afbd8ca0e1d43e53408383bb623fe41a79.tar
nixlib-c369c4afbd8ca0e1d43e53408383bb623fe41a79.tar.gz
nixlib-c369c4afbd8ca0e1d43e53408383bb623fe41a79.tar.bz2
nixlib-c369c4afbd8ca0e1d43e53408383bb623fe41a79.tar.lz
nixlib-c369c4afbd8ca0e1d43e53408383bb623fe41a79.tar.xz
nixlib-c369c4afbd8ca0e1d43e53408383bb623fe41a79.tar.zst
nixlib-c369c4afbd8ca0e1d43e53408383bb623fe41a79.zip
grub2: Fix zfs support
Diffstat (limited to 'pkgs/tools/misc/grub')
-rw-r--r--pkgs/tools/misc/grub/2.0x.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/tools/misc/grub/2.0x.nix b/pkgs/tools/misc/grub/2.0x.nix
index e3c07af759c9..fdb2ae556e8d 100644
--- a/pkgs/tools/misc/grub/2.0x.nix
+++ b/pkgs/tools/misc/grub/2.0x.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, autogen, flex, bison, python, autoconf, automake
+{ stdenv, fetchurl, fetchgit, autogen, flex, bison, python, autoconf, automake
 , gettext, ncurses, libusb, freetype, qemu, devicemapper
 , linuxPackages ? null
 , efiSupport ? false
@@ -14,9 +14,9 @@ let
 
   canEfi = any (system: stdenv.system == system) (mapAttrsToList (name: _: name) efiSystems);
 
-  prefix = "grub${if efiSupport then "-efi" else ""}";
+  prefix = "grub${if efiSupport then "-efi" else ""}${optionalString zfsSupport "-zfs"}";
 
-  version = "2.02-beta2";
+  version = "2.02-git-1de3a4";
 
   unifont_bdf = fetchurl {
     url = "http://unifoundry.com/unifont-5.1.20080820.bdf.gz";
@@ -30,10 +30,10 @@ assert zfsSupport -> linuxPackages != null && linuxPackages.zfs != null;
 stdenv.mkDerivation rec {
   name = "${prefix}-${version}";
 
-  src = fetchurl {
-    name = "grub-2.02-beta2.tar.xz";
-    url = "http://alpha.gnu.org/gnu/grub/grub-2.02~beta2.tar.xz";
-    sha256 = "13a13fhc0wf473dn73zhga15mjvkg6vqp4h25dxg4n7am2r05izn";
+  src = fetchgit {
+    url = "git://git.savannah.gnu.org/grub.git";
+    rev = "1de3a48098053aaebd35232bd73e3ce3f3fdf51c";
+    sha256 = "0d1953nmi251czkm1dmd7vnm3iz2rkqbznlp6ph33va0d7kw1kfc";
   };
 
   nativeBuildInputs = [ autogen flex bison python autoconf automake ];