diff --git a/pkgs/by-name/fl/fluxcd/package.nix b/pkgs/by-name/fl/fluxcd/package.nix index 402b3c30a4bd..dae3433021b1 100644 --- a/pkgs/by-name/fl/fluxcd/package.nix +++ b/pkgs/by-name/fl/fluxcd/package.nix @@ -5,6 +5,7 @@ installShellFiles, lib, stdenv, + writableTmpDirAsHomeHook, }: let @@ -46,11 +47,11 @@ buildGoModule rec { subPackages = [ "cmd/flux" ]; + nativeBuildInputs = [ installShellFiles ]; + # Required to workaround test error: # panic: mkdir /homeless-shelter: permission denied - env.HOME = "$TMPDIR"; - - nativeBuildInputs = [ installShellFiles ]; + nativeCheckInputs = [ writableTmpDirAsHomeHook ]; doInstallCheck = true; installCheckPhase = ''