diff --git a/pkgs/by-name/aw/aws-shell/package.nix b/pkgs/by-name/aw/aws-shell/package.nix index 5b1222f5ef84..ed7646e6446c 100644 --- a/pkgs/by-name/aw/aws-shell/package.nix +++ b/pkgs/by-name/aw/aws-shell/package.nix @@ -3,6 +3,7 @@ lib, fetchFromGitHub, awscli, + writableTmpDirAsHomeHook, }: python3Packages.buildPythonApplication rec { @@ -38,12 +39,9 @@ python3Packages.buildPythonApplication rec { nativeCheckInputs = with python3Packages; [ pytestCheckHook + writableTmpDirAsHomeHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - meta = { homepage = "https://github.com/awslabs/aws-shell"; description = "Integrated shell for working with the AWS CLI";