<commit_before>final: prev:

let

  optionalList = xs: if xs == null then [ ] else xs;

in {
  h2o = prev.h2o.overrideAttrs (_attrs: {
    version = final.sources.h2o.rev;
    src = final.sources.h2o;
    outputs = [ "out" "dev" "lib" ];
  });

  secp256k1 = prev.secp256k1.overrideAttrs (_attrs: {
    version = final.sources.secp256k1.rev;
    src = final.sources.secp256k1;
  });

  libsigsegv = prev.libsigsegv.overrideAttrs (attrs: {
    patches = optionalList attrs.patches ++ [
      ../pkgs/libsigsegv/disable-stackvma_fault-linux-arm.patch
      ../pkgs/libsigsegv/disable-stackvma_fault-linux-i386.patch
    ];
  });

  curlUrbit = prev.curlMinimal.override {
    http2Support = false;
    scpSupport = false;
    gssSupport = false;
    ldapSupport = false;
    brotliSupport = false;
  };

  lmdb = prev.lmdb.overrideAttrs (attrs: {
    patches =
      optionalList attrs.patches ++ prev.lib.optional prev.stdenv.isDarwin [
        ../pkgs/lmdb/darwin-fsync.patch
      ];
  });
}<commit_msg>build: explicitly override h2o build platforms to support darwin<commit_after>final: prev:

let

  optionalList = xs: if xs == null then [ ] else xs;

in {
  h2o = prev.h2o.overrideAttrs (_attrs: {
    version = final.sources.h2o.rev;
    src = final.sources.h2o;
    outputs = [ "out" "dev" "lib" ];
    meta.platforms = prev.lib.platforms.linux ++ prev.lib.platforms.darwin;
  });

  secp256k1 = prev.secp256k1.overrideAttrs (_attrs: {
    version = final.sources.secp256k1.rev;
    src = final.sources.secp256k1;
  });

  libsigsegv = prev.libsigsegv.overrideAttrs (attrs: {
    patches = optionalList attrs.patches ++ [
      ../pkgs/libsigsegv/disable-stackvma_fault-linux-arm.patch
      ../pkgs/libsigsegv/disable-stackvma_fault-linux-i386.patch
    ];
  });

  curlUrbit = prev.curlMinimal.override {
    http2Support = false;
    scpSupport = false;
    gssSupport = false;
    ldapSupport = false;
    brotliSupport = false;
  };

  lmdb = prev.lmdb.overrideAttrs (attrs: {
    patches =
      optionalList attrs.patches ++ prev.lib.optional prev.stdenv.isDarwin [
        ../pkgs/lmdb/darwin-fsync.patch
      ];
  });
}
{'fraction_non_alphanumeric': 0.13395784543325526, 'fraction_numerical': 0.022950819672131147, 'mean_word_length': 2.876588021778584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6924311', 'n_tokens_mistral': 827, 'n_tokens_neox': 785, 'n_words': 129}