<commit_before># In order to update `nixpkgs.json` to a specific revision, run:
#
# ```bash
# $ nix-prefetch-git https://github.com/NixOS/nixpkgs.git "${REVISION}" > nixpkgs.json
# ```

with rec {
  system = builtins.currentSystem;

  builtin-paths = import <nix/config.nix>;

  nixpkgs-json = builtins.fromJSON (builtins.readFile ./nixpkgs.json);

  # The nixpkgs to use when bootstrapping. This shouldn't matter except insofar
  # as it needs to have fetchFromGitHub and ideally the binary cache should be
  # populated for this.
  hashes = {
    commit = "76d649b59484607901f0c1b8f737d8376a904019";
    sha = "04xp12gmjby84k4pabc0nspggf4pgycnl764zf7w50izx65r9q8x";
  };

  stage1-tarball = import <nix/fetchurl.nix> {
    url = "https://github.com/NixOS/nixpkgs/archive/${hashes.commit}.tar.gz";
    sha256 = hashes.sha;
  };

  stage1-path = builtins.derivation {
    name = "nixpkgs-bootstrap-stage1";
    builder = builtin-paths.shell;
    args = [
      (builtins.toFile "nixpkgs-unpacker" ''<commit_msg>Fixed weird issue with nixpkgs bootstrapping<commit_after># In order to update `nixpkgs.json` to a specific revision, run:
#
# ```bash
# $ nix-prefetch-git https://github.com/NixOS/nixpkgs.git "${REVISION}" > nixpkgs.json
# ```

with rec {
  system = builtins.currentSystem;

  builtin-paths = import <nix/config.nix>;

  nixpkgs-json = builtins.fromJSON (builtins.readFile ./nixpkgs.json);

  # The nixpkgs to use when bootstrapping. This shouldn't matter except insofar
  # as it needs to have fetchFromGitHub and ideally the binary cache should be
  # populated for this.
  hashes = {
    commit = "788ce6e3df12bb0cf19fb9ccf8ffa75558b551ba";
    sha = "0ywvp5y6slff5xg1g63afhjywvqyz2pjxk3i203xph7fz3srpx2x";
  };

  stage1-tarball = import <nix/fetchurl.nix> {
    url = "https://github.com/NixOS/nixpkgs/archive/${hashes.commit}.tar.gz";
    sha256 = hashes.sha;
  };

  stage1-path = builtins.derivation {
    name = "nixpkgs-bootstrap-stage1";
    builder = builtin-paths.shell;
    args = [
      (builtins.toFile "nixpkgs-unpacker" ''
{'fraction_non_alphanumeric': 0.12469556746225037, 'fraction_numerical': 0.047735021919142716, 'mean_word_length': 3.7990654205607477, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '7508617', 'n_tokens_mistral': 861, 'n_tokens_neox': 779, 'n_words': 155}