Unverified Commit dec96138 authored by Wolfgang Walther's avatar Wolfgang Walther
Browse files
parent 7a35667a
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
{ 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
+1 −1
Original line number Diff line number Diff line
@@ -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