<commit_before>{ stdenv, fetchurl, unzip }:

let version = "2.013"; in
stdenv.mkDerivation {
  name = "hack-font-${version}";

  src = let
    version_ = with stdenv.lib;
      concatStringsSep "_" (splitString "." version);
  in fetchurl {
    sha256 = "16lap1796baiyn50fag3gszv7l1c5v62pvlr57ww501ka024gnnk";
    url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version_}-ttf.zip";
  };

  sourceRoot = ".";

  nativeBuildInputs = [ unzip ];

  installPhase = ''
    mkdir -p $out/share/fonts/hack
    cp *.ttf $out/share/fonts/hack
  '';

  meta = with stdenv.lib; {
    inherit version;
    description = "A typeface designed for source code";
    longDescription = ''<commit_msg>hack-font: 2.013 -> 2.015<commit_after>{ stdenv, fetchurl, unzip }:

let version = "2.015"; in
stdenv.mkDerivation {
  name = "hack-font-${version}";

  src = let
    version_ = with stdenv.lib;
      concatStringsSep "_" (splitString "." version);
  in fetchurl {
    sha256 = "0x0c3wwxiidl5a6axbcwizxny5q2yc6l4724smdj4gmn1xa137g5";
    url = "https://github.com/chrissimpkins/Hack/releases/download/v${version}/Hack-v${version_}-ttf.zip";
  };

  sourceRoot = ".";

  nativeBuildInputs = [ unzip ];

  installPhase = ''
    mkdir -p $out/share/fonts/hack
    cp *.ttf $out/share/fonts/hack
  '';

  meta = with stdenv.lib; {
    inherit version;
    description = "A typeface designed for source code";
    longDescription = ''
{'fraction_non_alphanumeric': 0.1479944674965422, 'fraction_numerical': 0.042876901798063624, 'mean_word_length': 3.358433734939759, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1188885', 'n_tokens_mistral': 597, 'n_tokens_neox': 542, 'n_words': 98}