Merge pull request #198073 from thenonameguy/pg_relusage

postgresqlPackages.pg_relusage: init at 0.0.1
This commit is contained in:
Mario Rodas 2022-11-18 07:48:28 -05:00 committed by GitHub
commit 46e209ce07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ lib, stdenv, fetchFromGitHub, postgresql }:
stdenv.mkDerivation rec {
pname = "pg_relusage";
version = "0.0.1";
buildInputs = [ postgresql ];
src = fetchFromGitHub {
owner = "adept";
repo = pname;
rev = "refs/tags/${version}";
sha256 = "8hJNjQ9MaBk3J9a73l+yQMwMW/F2N8vr5PO2o+5GvYs=";
};
installPhase = ''
install -D -t $out/lib *.so
install -D -t $out/share/postgresql/extension *.sql
install -D -t $out/share/postgresql/extension *.control
'';
meta = with lib; {
description = "pg_relusage extension for PostgreSQL: discover and log the relations used in your statements";
homepage = "https://github.com/adept/pg_relusage";
maintainers = with maintainers; [ thenonameguy ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}

View File

@ -62,6 +62,8 @@ self: super: {
pg_partman = super.callPackage ./ext/pg_partman.nix { };
pg_relusage = super.callPackage ./ext/pg_relusage.nix { };
pg_safeupdate = super.callPackage ./ext/pg_safeupdate.nix { };
repmgr = super.callPackage ./ext/repmgr.nix { };