Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071{ fetchFromGitHub, lib, libkrb5, openssl, postgresql, postgresqlBuildExtension,}:
let sources = { # v18: No upstream ticket, yet (2025-07-07) "17" = { version = "17.1"; hash = "sha256-9St/ESPiFq2NiPKqbwHLwkIyATKUkOGxFcUrWgT+Iqo="; }; "16" = { version = "16.1"; hash = "sha256-fzoAcXEKmA+xD4HtcHZgcduh1XmSgL8ZS4R72og7RGQ="; }; "15" = { version = "1.7.1"; hash = "sha256-emwoTowT7WKFX0RQDqJXjIblrzqaUIUkzqSqBCHVKQ8="; }; "14" = { version = "1.6.3"; hash = "sha256-KgLidJHjUK9BTp6ffmGUj1chcwIe6IzlcadRpGCfNdM="; }; "13" = { version = "1.5.3"; hash = "sha256-IU4Clec3DkKWT7+kw0VtQNybt94i7M2rSSgJG/XdcRs="; }; };
source = sources.${lib.versions.major postgresql.version} or { version = ""; hash = throw "Source for pgaudit is not available for ${postgresql.version}"; };inpostgresqlBuildExtension { pname = "pgaudit"; inherit (source) version;
src = fetchFromGitHub { owner = "pgaudit"; repo = "pgaudit"; tag = source.version; inherit (source) hash; };
buildInputs = [ libkrb5 openssl ];
makeFlags = [ "USE_PGXS=1" ];
enableUpdateScript = false;
meta = { broken = !builtins.elem (lib.versions.major postgresql.version) (builtins.attrNames sources); description = "Open Source PostgreSQL Audit Logging"; homepage = "https://github.com/pgaudit/pgaudit"; changelog = "https://github.com/pgaudit/pgaudit/releases/tag/${source.version}"; maintainers = with lib.maintainers; [ idontgetoutmuch ]; platforms = postgresql.meta.platforms; license = lib.licenses.postgresql; };}