summaryrefslogtreecommitdiff
path: root/pkgs/servers/sql/postgresql/ext/system_stats.nix
blob: 88d92d4b547cdf286733a08606134ea0b221638b (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
  fetchFromGitHub,
  lib,
  postgresql,
  postgresqlBuildExtension,
  stdenv,
}:
postgresqlBuildExtension rec {
  pname = "system_stats";
  version = "3.2";

  src = fetchFromGitHub {
    owner = "EnterpriseDB";
    repo = "system_stats";
    tag = "v${version}";
    hash = "sha256-/xXnui0S0ZjRw7P8kMAgttHVv8T41aOhM3pM8P0OTig=";
  };

  buildFlags = [ "PG_CFLAGS=-Wno-error=vla" ];

  meta = {
    description = "Postgres extension for exposing system metrics such as CPU, memory and disk information";
    homepage = "https://github.com/EnterpriseDB/system_stats";
    changelog = "https://github.com/EnterpriseDB/system_stats/raw/v${version}/CHANGELOG.md";
    maintainers = with lib.maintainers; [ shivaraj-bh ];
    platforms = postgresql.meta.platforms;
    license = lib.licenses.postgresql;
  };
}