Skip to content

Commit

Permalink
Merge: postgresql: enable tests on darwin (#358248)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ma27 authored Nov 23, 2024
2 parents b4ffcdd + 9869d7f commit 5ec5cda
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkgs/servers/sql/postgresql/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,13 @@ let
wrapProgram $out/bin/initdb --prefix PATH ":" ${glibc.bin}/bin
'';

doCheck = !stdenv'.hostPlatform.isDarwin;
# autodetection doesn't seem to able to find this, but it's there.
checkTarget = "check-world";
# Running tests as "install check" to work around SIP issue on macOS:
# https://www.postgresql.org/message-id/flat/4D8E1BC5-BBCF-4B19-8226-359201EA8305%40gmail.com
# Also see <nixpkgs>/doc/stdenv/platform-notes.chapter.md
doCheck = false;
# Tests just get stuck on macOS 14.x for v13 and v14
doInstallCheck = !(stdenv'.hostPlatform.isDarwin && olderThan "15");
installCheckTarget = "check-world";

passthru = let
this = self.callPackage generic args;
Expand Down

0 comments on commit 5ec5cda

Please sign in to comment.