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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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