<commit_before>{ stdenv, fetchurl, fetchpatch, libxml2, ncurses, bison, flex }:

stdenv.mkDerivation rec {
  name = "tiptop-${version}";
  version = "2.3.1";

  src = fetchurl {
    url = "${meta.homepage}/releases/${name}.tar.gz";
    sha256 = "10j1138y3cj3hsmfz4w0bmk90523b0prqwi9nhb4z8xvjnf49i2i";
  };

  patches = [(fetchpatch {
    name = "reproducibility.patch";
    url = "http://anonscm.debian.org/cgit/collab-maint/tiptop.git/plain/debian/"
      + "patches/0001-fix-reproducibility-of-build-process.patch?id=c777d0d5803";
    sha256 = "116l7n3nl9lj691i7j8x0d0za1i6zpqgghw5d70qfpb17c04cblp";
  })];

  postPatch = ''
    substituteInPlace ./configure --replace -lcurses -lncurses
  '';

  nativeBuildInputs = [ flex bison ];
  buildInputs = [ libxml2 ncurses ];

  NIX_CFLAGS_COMPILE = [ "-I${libxml2.dev}/include/libxml2" ];

  meta = with stdenv.lib; {
    description = "Performance monitoring tool for Linux";
    homepage = http://tiptop.gforge.inria.fr;
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.vcunat ];<commit_msg>tiptop: get patch from salsa.debian.org<commit_after>{ stdenv, fetchurl, fetchpatch, libxml2, ncurses, bison, flex }:

stdenv.mkDerivation rec {
  name = "tiptop-${version}";
  version = "2.3.1";

  src = fetchurl {
    url = "${meta.homepage}/releases/${name}.tar.gz";
    sha256 = "10j1138y3cj3hsmfz4w0bmk90523b0prqwi9nhb4z8xvjnf49i2i";
  };

  patches = [(fetchpatch {
    name = "reproducibility.patch";
    url = "https://salsa.debian.org/debian/tiptop/raw/debian/2.3.1-1/debian/patches/0001-fix-reproducibility-of-build-process.patch";
    sha256 = "116l7n3nl9lj691i7j8x0d0za1i6zpqgghw5d70qfpb17c04cblp";
  })];

  postPatch = ''
    substituteInPlace ./configure --replace -lcurses -lncurses
  '';

  nativeBuildInputs = [ flex bison ];
  buildInputs = [ libxml2 ncurses ];

  NIX_CFLAGS_COMPILE = [ "-I${libxml2.dev}/include/libxml2" ];

  meta = with stdenv.lib; {
    description = "Performance monitoring tool for Linux";
    homepage = http://tiptop.gforge.inria.fr;
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = [ maintainers.vcunat ];
{'fraction_non_alphanumeric': 0.14490078449469312, 'fraction_numerical': 0.06275957544993079, 'mean_word_length': 3.8070953436807096, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '7577141', 'n_tokens_mistral': 938, 'n_tokens_neox': 865, 'n_words': 123}