Skip to content

Commit 0418996

Browse files
committed
pg-dump-anon: use latest postgresql available
While reviewing #352966 I noticed that the pg_anonymizer test fails for postgresql 17. The reason for that is that `pkgs.postgresql` is v16 and using its psql to connect against a v17 database doesn't work. I decided that we'll just use the latest available package in here. I don't want to introduce another attribute (`postgresql_latest`), if there are too many instances of that we're blocked on adding new postgresql majors directly to master again which is the current status quo. With the test rework in #352966 it's also way easier to catch this.
1 parent 50f7983 commit 0418996

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkgs/by-name/pg/pg-dump-anon/package.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, fetchFromGitLab, buildGoModule, nixosTests, postgresql, makeWrapper }:
1+
{ lib, fetchFromGitLab, buildGoModule, nixosTests, postgresql_17, makeWrapper }:
22

33
buildGoModule rec {
44
pname = "pg-dump-anon";
@@ -19,7 +19,7 @@ buildGoModule rec {
1919
nativeBuildInputs = [ makeWrapper ];
2020
postInstall = ''
2121
wrapProgram $out/bin/pg_dump_anon \
22-
--prefix PATH : ${lib.makeBinPath [ postgresql ]}
22+
--prefix PATH : ${lib.makeBinPath [ postgresql_17 ]}
2323
'';
2424

2525
meta = with lib; {

0 commit comments

Comments
 (0)