postgresql16Packages.pgaudit: 1.7.0 -> 16.0
Diff: https://github.com/pgaudit/pgaudit/compare/1.7.0...16.0 Changelog: https://github.com/pgaudit/pgaudit/releases/tag/16.0
This commit is contained in:
@@ -1,14 +1,42 @@
|
||||
{ lib, stdenv, fetchFromGitHub, libkrb5, openssl, postgresql }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
let
|
||||
source = {
|
||||
"16" = {
|
||||
version = "16.0";
|
||||
hash = "sha256-8+tGOl1U5y9Zgu+9O5UDDE4bec4B0JC/BQ6GLhHzQzc=";
|
||||
};
|
||||
"15" = {
|
||||
version = "1.7.0";
|
||||
hash = "sha256-8pShPr4HJaJQPjW1iPJIpj3CutTx8Tgr+rOqoXtgCcw=";
|
||||
};
|
||||
"14" = {
|
||||
version = "1.6.2";
|
||||
hash = "sha256-Bl7Jk2B0deZUDiI391vk4nilwuVGHd1wuaQRSCoA3Mk=";
|
||||
};
|
||||
"13" = {
|
||||
version = "1.5.2";
|
||||
hash = "sha256-fyf2Ym0fAAXjc28iFCGDEftPAyDLXmEgi/0DaTJJiIg=";
|
||||
};
|
||||
"12" = {
|
||||
version = "1.4.3";
|
||||
hash = "sha256-c8/xUFIHalu2bMCs57DeylK0oW0VnQwmUCpdp+tYqk4=";
|
||||
};
|
||||
"11" = {
|
||||
version = "1.3.4";
|
||||
hash = "sha256-UEnwD36ejeYWyKRHZ4mPt6/Ru76Gy8s/rgIvmgermiM=";
|
||||
};
|
||||
}.${lib.versions.major postgresql.version} or (throw "Source for pgaudit is not available for ${postgresql.version}");
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "pgaudit";
|
||||
version = "1.7.0";
|
||||
inherit (source) version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pgaudit";
|
||||
repo = "pgaudit";
|
||||
rev = version;
|
||||
hash = "sha256-8pShPr4HJaJQPjW1iPJIpj3CutTx8Tgr+rOqoXtgCcw=";
|
||||
rev = source.version;
|
||||
hash = source.hash;
|
||||
};
|
||||
|
||||
buildInputs = [ libkrb5 openssl postgresql ];
|
||||
@@ -16,7 +44,7 @@ stdenv.mkDerivation rec {
|
||||
makeFlags = [ "USE_PGXS=1" ];
|
||||
|
||||
installPhase = ''
|
||||
install -D -t $out/lib *.so
|
||||
install -D -t $out/lib pgaudit${postgresql.dlSuffix}
|
||||
install -D -t $out/share/postgresql/extension *.sql
|
||||
install -D -t $out/share/postgresql/extension *.control
|
||||
'';
|
||||
@@ -24,6 +52,7 @@ stdenv.mkDerivation rec {
|
||||
meta = with lib; {
|
||||
description = "Open Source PostgreSQL Audit Logging";
|
||||
homepage = "https://github.com/pgaudit/pgaudit";
|
||||
changelog = "https://github.com/pgaudit/pgaudit/releases/tag/${source.version}";
|
||||
maintainers = with maintainers; [ idontgetoutmuch ];
|
||||
platforms = postgresql.meta.platforms;
|
||||
license = licenses.postgresql;
|
||||
|
||||
Reference in New Issue
Block a user