diff --git a/pkgs/by-name/pg/pgschema/package.nix b/pkgs/by-name/pg/pgschema/package.nix index 397d3bb6a2c7..066faae02adb 100644 --- a/pkgs/by-name/pg/pgschema/package.nix +++ b/pkgs/by-name/pg/pgschema/package.nix @@ -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 { };