buildah-unwrapped: fix build on darwin
Go software has a habit of looking for $HOME or $XDG_CACHE_HOME in `init` subroutines, which are called at startup time. Providing the appropriate env var via `writableTmpDirAsHomeHook` and `versionCheckKeepEnvironment` is the way to go
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
libapparmor,
|
||||
libselinux,
|
||||
libseccomp,
|
||||
writableTmpDirAsHomeHook,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
@@ -72,8 +73,12 @@ buildGoModule (finalAttrs: {
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
nativeInstallCheckInputs = [
|
||||
writableTmpDirAsHomeHook
|
||||
versionCheckHook
|
||||
];
|
||||
versionCheckProgramArg = "--version";
|
||||
versionCheckKeepEnvironment = [ "HOME" ];
|
||||
|
||||
meta = {
|
||||
description = "Tool which facilitates building OCI images";
|
||||
|
||||
Reference in New Issue
Block a user