mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-17 21:35:36 +00:00
[Backport release-26.05] pgschema: build in sandbox (#563904)
This commit is contained in:
@@ -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 { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user