Skip to content

Commit b2d9c38

Browse files
committed
fix(pg_stat_monitor): use pkgs.testers.runNixOSTest instead of self.inputs.nixpkgs.lib.nixos.runTest
The pg_stat_monitor test was using self.inputs.nixpkgs.lib.nixos.runTest with hostPkgs parameter, which causes cross-compilation issues on Darwin when building Linux VMs. This change aligns it with all other extension tests by using pkgs.testers.runNixOSTest, which properly handles cross-platform builds.
1 parent 413e268 commit b2d9c38

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

nix/ext/tests/pg_stat_monitor.nix

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ let
7070
psql_15 = postgresqlWithExtension self.packages.${pkgs.stdenv.hostPlatform.system}.postgresql_15;
7171
psql_17 = postgresqlWithExtension self.packages.${pkgs.stdenv.hostPlatform.system}.postgresql_17;
7272
in
73-
self.inputs.nixpkgs.lib.nixos.runTest {
73+
pkgs.testers.runNixOSTest {
7474
name = pname;
75-
hostPkgs = pkgs;
7675
nodes.server =
7776
{ config, ... }:
7877
{

0 commit comments

Comments
 (0)