mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
direnv: use writableTmpDirAsHomeHook (#399559)
This commit is contained in:
parent
85aaac1267
commit
c112db2c31
1 changed files with 6 additions and 1 deletions
|
@ -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; {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue