mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +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,
|
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; {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue