at master 830 B view raw
1{ 2 fetchFromGitHub, 3 lib, 4 postgresql, 5 postgresqlBuildExtension, 6}: 7postgresqlBuildExtension (finalAttrs: { 8 pname = "system_stats"; 9 version = "3.2"; 10 11 src = fetchFromGitHub { 12 owner = "EnterpriseDB"; 13 repo = "system_stats"; 14 tag = "v${finalAttrs.version}"; 15 hash = "sha256-/xXnui0S0ZjRw7P8kMAgttHVv8T41aOhM3pM8P0OTig="; 16 }; 17 18 buildFlags = [ "PG_CFLAGS=-Wno-error=vla" ]; 19 20 meta = { 21 description = "Postgres extension for exposing system metrics such as CPU, memory and disk information"; 22 homepage = "https://github.com/EnterpriseDB/system_stats"; 23 changelog = "https://github.com/EnterpriseDB/system_stats/raw/v${finalAttrs.version}/CHANGELOG.md"; 24 maintainers = with lib.maintainers; [ shivaraj-bh ]; 25 platforms = postgresql.meta.platforms; 26 license = lib.licenses.postgresql; 27 }; 28})