<commit_before>{ stdenv, fetchurl, fetchgit, autogen, flex, bison, python, autoconf, automake
, gettext, ncurses, libusb, freetype, qemu, devicemapper
, linuxPackages ? null
, EFIsupport ? false
, zfsSupport ? false
}:

assert zfsSupport -> linuxPackages != null && linuxPackages.zfs != null;

let

  prefix = "grub${if EFIsupport then "-efi" else ""}";

  version = "2.02-beta2";

  unifont_bdf = fetchurl {
    url = "http://unifoundry.com/unifont-5.1.20080820.bdf.gz";
    sha256 = "0s0qfff6n6282q28nwwblp5x295zd6n71kl43xj40vgvdqxv0fxx";
  };

in

stdenv.mkDerivation rec {
  name = "${prefix}-${version}";

  src = fetchgit {
    url = "git://git.sv.gnu.org/grub.git";
    rev = "refs/tags/grub-2.02-beta2";
    sha256 = "157bknkcxibmvq19pagphlwfxd9xny7002gcanfzhjzcjpfz4scy";
  };

  nativeBuildInputs = [ autogen flex bison python autoconf automake ];
  buildInputs = [ ncurses libusb freetype gettext devicemapper ]
    ++ stdenv.lib.optional doCheck qemu
    ++ stdenv.lib.optional zfsSupport linuxPackages.zfs;
<commit_msg>grub: Fetch from alpha.gnu.org instead of git<commit_after>{ stdenv, fetchurl, autogen, flex, bison, python, autoconf, automake
, gettext, ncurses, libusb, freetype, qemu, devicemapper
, linuxPackages ? null
, EFIsupport ? false
, zfsSupport ? false
}:

assert zfsSupport -> linuxPackages != null && linuxPackages.zfs != null;

let

  prefix = "grub${if EFIsupport then "-efi" else ""}";

  version = "2.02-beta2";

  unifont_bdf = fetchurl {
    url = "http://unifoundry.com/unifont-5.1.20080820.bdf.gz";
    sha256 = "0s0qfff6n6282q28nwwblp5x295zd6n71kl43xj40vgvdqxv0fxx";
  };

in

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";
  };

  nativeBuildInputs = [ autogen flex bison python autoconf automake ];
  buildInputs = [ ncurses libusb freetype gettext devicemapper ]
    ++ stdenv.lib.optional doCheck qemu
    ++ stdenv.lib.optional zfsSupport linuxPackages.zfs;

{'fraction_non_alphanumeric': 0.13146654010441386, 'fraction_numerical': 0.059800664451827246, 'mean_word_length': 4.1414634146341465, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1051785', 'n_tokens_mistral': 940, 'n_tokens_neox': 858, 'n_words': 155}