<commit_before>{ stdenv, fetchFromGitHub, postgresql }:

stdenv.mkDerivation rec {
  name = "timescaledb-${version}";
  version = "0.5.0";

  buildInputs = [ postgresql ];

  src = fetchFromGitHub {
    owner = "timescale";
    repo = "timescaledb";
    rev = version;
    sha256 = "01swgjw563c42azxsg55ry7cyiipxkcvfrxmw71jil5dxl3s0fkz";
  };

  installPhase = ''
    mkdir -p $out/bin
    install -D timescaledb.so      -t $out/lib
    install -D timescaledb.control -t $out/share/extension
    cp -dpR    sql/*                  $out/share/extension/
  '';

  meta = with stdenv.lib; {
    description = "TimescaleDB scales PostgreSQL for time-series data via automatic partitioning across time and space";
    homepage = https://www.timescale.com/;
    maintainers = with maintainers; [ volth ];
    platforms = platforms.linux;
    license = licenses.postgresql;
  };
}<commit_msg>timescaledb: cosmetics<commit_after>{ stdenv, fetchFromGitHub, postgresql }:

# # To enable on NixOS:
# config.services.postgresql = {
#   extraPlugins = [ pkgs.timescaledb ];
#   extraConfig = "shared_preload_libraries = 'timescaledb'";
# }

stdenv.mkDerivation rec {
  name = "timescaledb-${version}";
  version = "0.5.0";

  buildInputs = [ postgresql ];

  src = fetchFromGitHub {
    owner = "timescale";
    repo = "timescaledb";
    rev = version;
    sha256 = "01swgjw563c42azxsg55ry7cyiipxkcvfrxmw71jil5dxl3s0fkz";
  };

  installPhase = ''
    mkdir -p $out/bin
    install -D timescaledb.so      -t $out/lib
    install -D timescaledb.control -t $out/share/extension
    cp -dpR    sql/*                  $out/share/extension/
  '';

  meta = with stdenv.lib; {
    description = "Scales PostgreSQL for time-series data via automatic partitioning across time and space";
    homepage = https://www.timescale.com/;
    maintainers = with maintainers; [ volth ];
    platforms = platforms.linux;
    license = licenses.postgresql;
  };
}
{'fraction_non_alphanumeric': 0.12072538860103627, 'fraction_numerical': 0.021761658031088083, 'mean_word_length': 3.0313152400835075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3395914', 'n_tokens_mistral': 725, 'n_tokens_neox': 684, 'n_words': 144}