postgresqlTestHook: mark as broken for darwin

Due to:
https://github.com/NixOS/nix/issues/12548
https://git.lix.systems/lix-project/lix/issues/691
This commit is contained in:
Wolfgang Walther 2025-03-23 16:55:00 +01:00
parent 7a35667a1c
commit dec961382c
No known key found for this signature in database
GPG Key ID: B39893FA5F65CAE1
2 changed files with 8 additions and 2 deletions

View File

@ -1,8 +1,14 @@
{ callPackage, makeSetupHook }:
{
callPackage,
makeSetupHook,
stdenv,
}:
makeSetupHook {
name = "postgresql-test-hook";
passthru.tests = {
simple = callPackage ./test.nix { };
};
# See comment in postgresql's generic.nix doInstallCheck section.
meta.broken = stdenv.hostPlatform.isDarwin;
} ./postgresql-test-hook.sh

View File

@ -219,7 +219,7 @@ pythonPackages.buildPythonApplication rec {
];
# sandboxing issues on aarch64-darwin, see https://github.com/NixOS/nixpkgs/issues/198495
doCheck = postgresql.doCheck;
doCheck = !postgresqlTestHook.meta.broken;
checkPhase = ''
runHook preCheck