mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
direnv: use writableTmpDirAsHomeHook (#399559)
This commit is contained in:
@@ -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; {
|
||||
|
||||
Reference in New Issue
Block a user