<commit_before>{ stdenv
, fetchurl
, lib
, pkgs

, python

, channel
}:

let
  boost = pkgs.boost.override { inherit channel; };
  pythonMajor = lib.head (lib.splitStrings "." python.version);
in
stdenv.mkDerivation {
  name = python.libPrefix + "-" + boost.name;

  inherit (boost)
    src;

  buildInputs = [
    python
  ];

  configurePhase = ''
    ./bootstrap.sh --prefix="$dev" --with-python="${python.executable}"
  '';

  b2Args = [
    "variant=release"
    "threading=multi"
    "link=shared"
    "runtime-link=shared"
    "--with-python"
  ];

  buildPhase = ''
    export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $lib"
    b2Args="$b2Args -j$NIX_BUILD_CORES"<commit_msg>boost(python): Fix typo<commit_after>{ stdenv
, fetchurl
, lib
, pkgs

, python

, channel
}:

let
  boost = pkgs.boost.override { inherit channel; };
  pythonMajor = lib.head (lib.splitString "." python.version);
in
stdenv.mkDerivation {
  name = python.libPrefix + "-" + boost.name;

  inherit (boost)
    src;

  buildInputs = [
    python
  ];

  configurePhase = ''
    ./bootstrap.sh --prefix="$dev" --with-python="${python.executable}"
  '';

  b2Args = [
    "variant=release"
    "threading=multi"
    "link=shared"
    "runtime-link=shared"
    "--with-python"
  ];

  buildPhase = ''
    export NIX_LDFLAGS="$NIX_LDFLAGS -rpath $lib"
    b2Args="$b2Args -j$NIX_BUILD_CORES"
{'fraction_non_alphanumeric': 0.16114790286975716, 'fraction_numerical': 0.004415011037527594, 'mean_word_length': 3.108761329305136, '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': '6322856', 'n_tokens_mistral': 509, 'n_tokens_neox': 492, 'n_words': 87}