From fef3407120d6cd8e259f4eb3a611e6690be9559c Mon Sep 17 00:00:00 2001 From: Daniel Nagy Date: Mon, 31 Mar 2025 12:45:00 +0200 Subject: [PATCH] onionshare: use writableTmpDirAsHomeHook --- pkgs/by-name/on/onionshare/package.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/on/onionshare/package.nix b/pkgs/by-name/on/onionshare/package.nix index d025d96e35a6..640caf9ed2a1 100644 --- a/pkgs/by-name/on/onionshare/package.nix +++ b/pkgs/by-name/on/onionshare/package.nix @@ -15,6 +15,7 @@ versionCheckHook, gitUpdater, onionshare-gui, + writableTmpDirAsHomeHook, }: python3Packages.buildPythonApplication rec { pname = "onionshare-cli"; @@ -95,16 +96,12 @@ python3Packages.buildPythonApplication rec { nativeCheckInputs = [ versionCheckHook + writableTmpDirAsHomeHook ] ++ (with python3Packages; [ pytestCheckHook ]); - preCheck = '' - # Tests use the home directory - export HOME="$(mktemp -d)" - ''; - disabledTests = lib.optionals stdenv.hostPlatform.isLinux [ "test_get_tor_paths_linux" # expects /usr instead of /nix/store