[Backport release-26.05] pgschema: build in sandbox (#563904)

This commit is contained in:
nixpkgs-ci[bot]
2026-09-16 14:45:00 +00:00
committed by GitHub

View File

@@ -1,4 +1,5 @@
{
stdenv,
lib,
buildGoModule,
fetchFromGitHub,
@@ -33,11 +34,15 @@ buildGoModule (finalAttrs: {
"github.com/pgplex/pgschema/internal/postgres.binariesPath=${postgresql}"
];
# Tests fail in sandbox on darwin, with:
# Could not create shared memory segment: Cannot allocate memory
# Failed system call was shmget(key=18446744072262306125, size=56, 03600)
doCheck = !stdenv.hostPlatform.isDarwin;
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--help"; # there is no -v/--version
passthru.updateScript = nix-update-script { };