<commit_before>{ lib, stdenv, fetchFromGitHub, makeWrapper, ncurses, readline, ronn }:

stdenv.mkDerivation rec {

  pname = "cpcfs";
  version = "0.85.4";

  src = fetchFromGitHub {
    owner = "derikz";
    repo = "cpcfs";
    rev = "v${version}";
    sha256 = "0rfbry0qy8mv746mzk9zdfffkdgq4w7invgb5cszjma2cp83q3i2";
  };

  sourceRoot = "source/src";

  nativeBuildInputs = [ makeWrapper ncurses readline ronn ];

  postPatch = ''
    substituteInPlace Makefile \
      --replace '-ltermcap' '-lncurses' \
      --replace '-L /usr/lib/termcap' ' '
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    mkdir -p $out/man/man1
    cp cpcfs $out/bin
    ronn --roff ../template.doc --pipe > $out/man/man1/cpcfs.1
    runHook postInstall
  '';

  meta = with lib; {
    description = "Manipulating CPC dsk images and files";
    homepage = "https://github.com/derikz/cpcfs/" ;
    license = licenses.bsd2;
    maintainers = [ ];
    platforms = platforms.linux;
  };
}<commit_msg>cpcfs: expand platforms to all<commit_after>{ lib, stdenv, fetchFromGitHub, makeWrapper, ncurses, readline, ronn }:

stdenv.mkDerivation rec {

  pname = "cpcfs";
  version = "0.85.4";

  src = fetchFromGitHub {
    owner = "derikz";
    repo = "cpcfs";
    rev = "v${version}";
    sha256 = "0rfbry0qy8mv746mzk9zdfffkdgq4w7invgb5cszjma2cp83q3i2";
  };

  sourceRoot = "source/src";

  nativeBuildInputs = [ makeWrapper ncurses readline ronn ];

  postPatch = ''
    substituteInPlace Makefile \
      --replace '-ltermcap' '-lncurses' \
      --replace '-L /usr/lib/termcap' ' '
  '';

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    mkdir -p $out/man/man1
    cp cpcfs $out/bin
    ronn --roff ../template.doc --pipe > $out/man/man1/cpcfs.1
    runHook postInstall
  '';

  meta = with lib; {
    description = "Manipulating CPC dsk images and files";
    homepage = "https://github.com/derikz/cpcfs/" ;
    license = licenses.bsd2;
    maintainers = [ ];
    platforms = platforms.all;
  };
}
{'fraction_non_alphanumeric': 0.1412989588497769, 'fraction_numerical': 0.025780862667327716, 'mean_word_length': 2.800376647834275, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '3856729', 'n_tokens_mistral': 806, 'n_tokens_neox': 772, 'n_words': 156}