From 15fa6bec0186947548e98c895eacf6a2f47a4bbb Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Thu, 30 Jan 2025 20:52:16 +0100 Subject: [PATCH] aws-shell: use `writableTmpDirAsHomeHook` --- pkgs/by-name/aw/aws-shell/package.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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";