mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-06 04:03:04 +00:00
system_stats: init at 3.0
This commit is contained in:
parent
2de997bc6b
commit
da694466aa
@ -74,6 +74,8 @@ self: super: {
|
||||
|
||||
smlar = super.callPackage ./smlar.nix { };
|
||||
|
||||
system_stats = super.callPackage ./system_stats.nix { };
|
||||
|
||||
temporal_tables = super.callPackage ./temporal_tables.nix { };
|
||||
|
||||
timescaledb = super.callPackage ./timescaledb.nix { };
|
||||
|
40
pkgs/servers/sql/postgresql/ext/system_stats.nix
Normal file
40
pkgs/servers/sql/postgresql/ext/system_stats.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
stdenv,
|
||||
postgresql,
|
||||
}:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "system_stats";
|
||||
version = "3.0";
|
||||
|
||||
buildInputs = [ postgresql ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "EnterpriseDB";
|
||||
repo = "system_stats";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-LuX7/LOi0rl6L/kjbjq7rr2zPcGIOYB7hdZBNJ9xqak=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/{lib,share/postgresql/extension}
|
||||
|
||||
cp *${postgresql.dlSuffix} $out/lib
|
||||
cp *.sql $out/share/postgresql/extension
|
||||
cp *.control $out/share/postgresql/extension
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A 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 maintainers; [ shivaraj-bh ];
|
||||
platforms = postgresql.meta.platforms;
|
||||
license = licenses.postgresql;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user