{pg-dump-anon,postgresql.pkgs.anonymizer}: 1.3.2 -> 2.4.1 (#445784)
This commit is contained in:
@@ -1,30 +1,25 @@
|
||||
{
|
||||
cargo-pgrx_0_16_0,
|
||||
jitSupport,
|
||||
lib,
|
||||
llvm,
|
||||
nixosTests,
|
||||
pg-dump-anon,
|
||||
postgresql,
|
||||
postgresqlBuildExtension,
|
||||
buildPgrxExtension,
|
||||
runtimeShell,
|
||||
}:
|
||||
|
||||
postgresqlBuildExtension {
|
||||
buildPgrxExtension {
|
||||
pname = "postgresql_anonymizer";
|
||||
|
||||
inherit (pg-dump-anon) version src;
|
||||
|
||||
nativeBuildInputs = lib.optional jitSupport llvm;
|
||||
inherit postgresql;
|
||||
cargo-pgrx = cargo-pgrx_0_16_0;
|
||||
cargoHash = "sha256-Z1uH6Z2qLV1Axr8dXqPznuEZcacAZnv11tb3lWBh1yw=";
|
||||
|
||||
# Needs to be after postInstall, where removeNestedNixStore runs
|
||||
preFixup = ''
|
||||
cat >$out/bin/pg_dump_anon.sh <<'EOF'
|
||||
#!${runtimeShell}
|
||||
echo "This script is deprecated by upstream. To use the new script,"
|
||||
echo "please install pkgs.pg-dump-anon."
|
||||
exit 1
|
||||
EOF
|
||||
'';
|
||||
# Tries to copy extension into postgresql's store path.
|
||||
doCheck = false;
|
||||
|
||||
passthru.tests = nixosTests.postgresql.anonymizer.passthru.override postgresql;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user