Unverified Commit c112db2c authored by Daniel Nagy's avatar Daniel Nagy Committed by GitHub
Browse files

direnv: use writableTmpDirAsHomeHook (#399559)

parent 85aaac12
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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; {