<commit_before>{ stdenv, fetchurl, perl, gperf, bison, groff
, pkgconfig, libXft, fontconfig, pcre
, libtomcrypt, libtommath, lz4, zlib }:

stdenv.mkDerivation rec {
  name = "bitkeeper-${version}";
  version = "7.3ce";

  src = fetchurl {
    url = "https://www.bitkeeper.org/downloads/${version}/bk-${version}.tar.gz";
    sha256 = "0lk4vydpq5bi52m81h327gvzdzybf8kkak7yjwmpj6kg1jn9blaz";
  };

  enableParallelBuilding = true;

  buildInputs = [
    perl gperf bison groff libXft pkgconfig
    pcre libtomcrypt libtommath lz4
  ];

  postPatch = ''
        substituteInPlace port/unix_platform.sh \
                --replace /bin/rm rm
        substituteInPlace ./undo.c \
                --replace /bin/cat cat
  '';

  sourceRoot = "bk-${version}/src";
  buildPhase = ''
    make -j6 V=1 p
    make image
  '';

  installPhase = ''
    ./utils/bk-* $out/bitkeeper
    mkdir -p $out/bin
    $out/bitkeeper/bk links $out/bin
    chmod g-w $out
  '';

  meta = {
    description     = "A distributed version control system";
    longDescription = ''
      BitKeeper is a fast, enterprise-ready, distributed SCM that
      scales up to very large projects and down to tiny ones.
    '';
    homepage    = https://www.bitkeeper.org/;
    license     = stdenv.lib.licenses.asl20;
    platforms   = stdenv.lib.platforms.unix;
    maintainers = with stdenv.lib.maintainers; [ wscott thoughtpolice ];
  };
}<commit_msg>nixpkgs: build bitkeeper only on linux<commit_after>{ stdenv, fetchurl, perl, gperf, bison, groff
, pkgconfig, libXft, fontconfig, pcre
, libtomcrypt, libtommath, lz4, zlib }:

stdenv.mkDerivation rec {
  name = "bitkeeper-${version}";
  version = "7.3ce";

  src = fetchurl {
    url = "https://www.bitkeeper.org/downloads/${version}/bk-${version}.tar.gz";
    sha256 = "0lk4vydpq5bi52m81h327gvzdzybf8kkak7yjwmpj6kg1jn9blaz";
  };

  enableParallelBuilding = true;

  buildInputs = [
    perl gperf bison groff libXft pkgconfig
    pcre libtomcrypt libtommath lz4
  ];

  postPatch = ''
        substituteInPlace port/unix_platform.sh \
                --replace /bin/rm rm
        substituteInPlace ./undo.c \
                --replace /bin/cat cat
  '';

  sourceRoot = "bk-${version}/src";
  buildPhase = ''
    make -j6 V=1 p
    make image
  '';

  installPhase = ''
    ./utils/bk-* $out/bitkeeper
    mkdir -p $out/bin
    $out/bitkeeper/bk links $out/bin
    chmod g-w $out
  '';

  meta = {
    description     = "A distributed version control system";
    longDescription = ''
      BitKeeper is a fast, enterprise-ready, distributed SCM that
      scales up to very large projects and down to tiny ones.
    '';
    homepage    = https://www.bitkeeper.org/;
    license     = stdenv.lib.licenses.asl20;
    platforms   = stdenv.lib.platforms.linux;
    maintainers = with stdenv.lib.maintainers; [ wscott thoughtpolice ];
  };
}
{'fraction_non_alphanumeric': 0.12228451296426068, 'fraction_numerical': 0.018220042046250877, 'mean_word_length': 2.6508951406649617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '6611872', 'n_tokens_mistral': 1057, 'n_tokens_neox': 1003, 'n_words': 225}