direnv: use writableTmpDirAsHomeHook (#399559)

This commit is contained in:
Daniel Nagy
2025-04-19 22:06:04 +02:00
committed by GitHub
parent 85aaac1267
commit c112db2c31

View File

@@ -6,6 +6,7 @@
bash,
fish,
zsh,
writableTmpDirAsHomeHook,
}:
buildGoModule rec {
@@ -36,11 +37,15 @@ buildGoModule rec {
nativeCheckInputs = [
fish
zsh
writableTmpDirAsHomeHook
];
checkPhase = ''
export HOME=$(mktemp -d)
runHook preCheck
make test-go test-bash test-fish test-zsh
runHook postCheck
'';
meta = with lib; {