<commit_before>{ lib
, stdenv
, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  pname = "cpm";
  version = "0.35.1";

  src = fetchFromGitHub {
    owner = "cpm-cmake";
    repo = "CPM.cmake";
    rev = "v${version}";
    hash = "sha256-Oon/5iwkUUASsUDvde69iEwLe8/CAzwYKYsyzH5K+V0=";
  };

  dontConfigure = true;

  dontBuild = true;

  installPhase = ''
    mkdir -p ${placeholder "out"}/share/cpm/
    cp ./cmake/CPM.cmake ${placeholder "out"}/share/cpm/<commit_msg>cpm: replace `stdenv` with `stdenvNoCC` because of no compilation<commit_after>{ lib
, stdenvNoCC
, fetchFromGitHub
}:

stdenvNoCC.mkDerivation rec {
  pname = "cpm";
  version = "0.35.1";

  src = fetchFromGitHub {
    owner = "cpm-cmake";
    repo = "CPM.cmake";
    rev = "v${version}";
    hash = "sha256-Oon/5iwkUUASsUDvde69iEwLe8/CAzwYKYsyzH5K+V0=";
  };

  dontConfigure = true;

  dontBuild = true;

  installPhase = ''
    mkdir -p ${placeholder "out"}/share/cpm/
    cp ./cmake/CPM.cmake ${placeholder "out"}/share/cpm/
{'fraction_non_alphanumeric': 0.16132264529058116, 'fraction_numerical': 0.026052104208416832, 'mean_word_length': 3.324675324675325, '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': '115730', 'n_tokens_mistral': 449, 'n_tokens_neox': 424, 'n_words': 73}