at 25.11-pre 34 lines 887 B view raw
1{ 2 jitSupport, 3 lib, 4 llvm, 5 nixosTests, 6 pg-dump-anon, 7 postgresql, 8 postgresqlBuildExtension, 9 runtimeShell, 10}: 11 12postgresqlBuildExtension { 13 pname = "postgresql_anonymizer"; 14 15 inherit (pg-dump-anon) version src; 16 17 nativeBuildInputs = lib.optional jitSupport llvm; 18 19 # Needs to be after postInstall, where removeNestedNixStore runs 20 preFixup = '' 21 cat >$out/bin/pg_dump_anon.sh <<'EOF' 22 #!${runtimeShell} 23 echo "This script is deprecated by upstream. To use the new script," 24 echo "please install pkgs.pg-dump-anon." 25 exit 1 26 EOF 27 ''; 28 29 passthru.tests = nixosTests.postgresql.anonymizer.passthru.override postgresql; 30 31 meta = lib.getAttrs [ "homepage" "teams" "license" ] pg-dump-anon.meta // { 32 description = "Extension to mask or replace personally identifiable information (PII) or commercially sensitive data from a PostgreSQL database"; 33 }; 34}