<commit_before>{ stdenv
, fetchurl
, gettext
, lib

, ncurses
}:

let
  channel = "2.9";
  version = "${channel}.4";
in
stdenv.mkDerivation rec {
  name = "nano-${version}";

  src = fetchurl {
    urls = [
      "https://www.nano-editor.org/dist/v${channel}/${name}.tar.xz"
      "mirror://gnu/nano/${name}.tar.xz"
    ];
    hashOutput = false;
    sha256 = "2cf9726e735f5c962af63d27c2faaead5936e45adec983659fb9e4af88ffa35a";
  };

  nativeBuildInputs = [
    gettext
  ];

  buildInputs = [
    ncurses
  ];

  configureFlags = [
    "--sysconfdir=/etc"
    "--enable-nls"
    "--disable-tiny"
  ];

  passthru = {
    srcVerification = fetchurl {
      failEarly = true;
      pgpsigUrls = map (n: "${n}.asc") src.urls;
      pgpKeyFingerprint = "BFD0 0906 1E53 5052 AD0D  F215 0D28 D4D2 A0AC E884";
      inherit (src) urls outputHash outputHashAlgo;
    };
  };

  meta = with lib; {<commit_msg>nano: 2.9.4 -> 2.9.5<commit_after>{ stdenv
, fetchurl
, gettext
, groff
, lib

, file
, ncurses
, zlib
}:

let
  channel = "2.9";
  version = "${channel}.5";
in
stdenv.mkDerivation rec {
  name = "nano-${version}";

  src = fetchurl {
    urls = [
      "https://www.nano-editor.org/dist/v${channel}/${name}.tar.xz"
      "mirror://gnu/nano/${name}.tar.xz"
    ];
    hashOutput = false;
    sha256 = "7b8d181cb57f42fa86a380bb9ad46abab859b60383607f731b65a9077f4b4e19";
  };

  nativeBuildInputs = [
    gettext
    groff
  ];

  buildInputs = [
    file
    ncurses
    zlib
  ];

  configureFlags = [
    "--sysconfdir=/etc"
    "--enable-nls"
    "--disable-tiny"
  ];

  passthru = {
    srcVerification = fetchurl {
      failEarly = true;
      pgpsigUrls = map (n: "${n}.asc") src.urls;
      pgpKeyFingerprint = "<KEY>  F215 0D28 D4D2 A0AC E884";
      inherit (src) urls outputHash outputHashAlgo;
    };
  };

  meta = with lib; {
{'fraction_non_alphanumeric': 0.1565217391304348, 'fraction_numerical': 0.07119565217391305, 'mean_word_length': 2.554054054054054, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2468948', 'n_tokens_mistral': 837, 'n_tokens_neox': 762, 'n_words': 128}