<commit_before>packages:
{ buildEnv, makeWrapper, lib }:
# TODO: Rethink how we determine and/or get the CLI.
#       Possible options raised in #187118:
#         1. A separate argument for the CLI (as suggested by IvarWithoutBones
#         2. Use the highest version SDK for the CLI (as suggested by GGG)
#         3. Something else?
let cli = builtins.head packages;
in
assert lib.assertMsg ((builtins.length packages) < 1)
    ''You must include at least one package, e.g
      `with dotnetCorePackages; combinePackages [
          sdk_3_1 aspnetcore_5_0
       ];`'' ;
  buildEnv {
    name = "dotnet-core-combined";
    paths = packages;
    pathsToLink = [ "/host" "/packs" "/sdk" "/sdk-manifests" "/shared" "/templates" ];
    ignoreCollisions = true;
    nativeBuildInputs = [
      makeWrapper
    ];
    postBuild = ''
      cp -R ${cli}/{dotnet,LICENSE.txt,nix-support,ThirdPartyNotices.txt} $out/

      mkdir $out/bin
      ln -s $out/dotnet $out/bin/dotnet
      wrapProgram $out/bin/dotnet \
        --prefix LD_LIBRARY_PATH : ${cli.icu}/lib<commit_msg>dotnetCorePackages.combinePackages: fix bug introduced in #187118<commit_after>packages:
{ buildEnv, makeWrapper, lib }:
# TODO: Rethink how we determine and/or get the CLI.
#       Possible options raised in #187118:
#         1. A separate argument for the CLI (as suggested by IvarWithoutBones
#         2. Use the highest version SDK for the CLI (as suggested by GGG)
#         3. Something else?
let cli = builtins.head packages;
in
assert lib.assertMsg ((builtins.length packages) > 0)
    ''You must include at least one package, e.g
      `with dotnetCorePackages; combinePackages [
          sdk_3_1 aspnetcore_5_0
       ];`'' ;
  buildEnv {
    name = "dotnet-core-combined";
    paths = packages;
    pathsToLink = [ "/host" "/packs" "/sdk" "/sdk-manifests" "/shared" "/templates" ];
    ignoreCollisions = true;
    nativeBuildInputs = [
      makeWrapper
    ];
    postBuild = ''
      cp -R ${cli}/{dotnet,LICENSE.txt,nix-support,ThirdPartyNotices.txt} $out/

      mkdir $out/bin
      ln -s $out/dotnet $out/bin/dotnet
      wrapProgram $out/bin/dotnet \
        --prefix LD_LIBRARY_PATH : ${cli.icu}/lib
{'fraction_non_alphanumeric': 0.11541970802919709, 'fraction_numerical': 0.01551094890510949, 'mean_word_length': 2.774526678141136, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6643001', 'n_tokens_mistral': 742, 'n_tokens_neox': 701, 'n_words': 204}