Skip to content

Commit f47ecd2

Browse files
committed
fix(pgsodium): use pkgs.pkgsLinux for psql_15/psql_17 to match postgresqlWithExtension
The pgsodium test uses pkgs.pkgsLinux.buildEnv to build Linux packages, but psql_15 and psql_17 were referencing pkgs.system which could be Darwin. This caused mixed Darwin/Linux binaries in the test environment, leading to "cannot execute binary file" errors on Darwin when trying to run pg_regress. Now consistently uses pkgs.pkgsLinux for all package references.
1 parent b2d9c38 commit f47ecd2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

nix/ext/tests/pgsodium.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ let
4848
echo 0000000000000000000000000000000000000000000000000000000000000000
4949
''
5050
);
51-
psql_15 = postgresqlWithExtension self.packages.${pkgs.system}.postgresql_15;
52-
psql_17 = postgresqlWithExtension self.packages.${pkgs.system}.postgresql_17;
51+
psql_15 =
52+
postgresqlWithExtension
53+
self.packages.${pkgs.pkgsLinux.stdenv.hostPlatform.system}.postgresql_15;
54+
psql_17 =
55+
postgresqlWithExtension
56+
self.packages.${pkgs.pkgsLinux.stdenv.hostPlatform.system}.postgresql_17;
5357
in
5458
pkgs.testers.runNixOSTest {
5559
name = pname;

0 commit comments

Comments
 (0)