Merge pull request #208250 from idontgetoutmuch/postgres-extension-pgaudit

postgresqlPackages.pgaudit: init at 1.7.0
This commit is contained in:
Mario Rodas 2023-01-31 05:58:28 -05:00 committed by GitHub
commit eeb802b7b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ lib, stdenv, fetchFromGitHub, libkrb5, openssl, postgresql }:
stdenv.mkDerivation rec {
pname = "pgaudit";
version = "1.7.0";
src = fetchFromGitHub {
owner = "pgaudit";
repo = "pgaudit";
rev = version;
hash = "sha256-8pShPr4HJaJQPjW1iPJIpj3CutTx8Tgr+rOqoXtgCcw=";
};
buildInputs = [ libkrb5 openssl postgresql ];
makeFlags = [ "USE_PGXS=1" ];
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 = "Open Source PostgreSQL Audit Logging";
homepage = "https://github.com/pgaudit/pgaudit";
maintainers = with maintainers; [ idontgetoutmuch ];
platforms = postgresql.meta.platforms;
license = licenses.postgresql;
};
}

View File

@ -24,6 +24,8 @@ self: super: {
pg_similarity = super.callPackage ./ext/pg_similarity.nix { };
pgaudit = super.callPackage ./ext/pgaudit.nix { };
pgroonga = super.callPackage ./ext/pgroonga.nix { };
pgvector = super.callPackage ./ext/pgvector.nix { };