From aacfbbd4a1b0a717a24d4c9fea1822634e4f54e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Bon=C3=A9?= Date: Tue, 9 Dec 2025 12:05:35 +0100 Subject: [PATCH] Use POCL_CACHE_DIR instead of writableHome...Hook --- test/compilers/opencl.nix | 13 ++++++++----- test/compilers/pocl.nix | 7 ++++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/test/compilers/opencl.nix b/test/compilers/opencl.nix index ac7bcfd..ec0512d 100644 --- a/test/compilers/opencl.nix +++ b/test/compilers/opencl.nix @@ -4,7 +4,6 @@ opencl-headers, pocl, clinfo, - writableTmpDirAsHomeHook, runCommand, lib, }: @@ -50,10 +49,12 @@ stdenv.mkDerivation (finalAttrs: { clinfo finalAttrs.finalPackage pocl - writableTmpDirAsHomeHook ]; - env.POCL_DEBUG = "error,warn"; + env = { + POCL_DEBUG = "error,warn"; + POCL_CACHE_DIR = "/build/pocl_cache"; + }; requiredSystemFeatures = [ "sys-devices" ]; } @@ -84,10 +85,12 @@ stdenv.mkDerivation (finalAttrs: { { nativeBuildInputs = [ finalAttrs.finalPackage - writableTmpDirAsHomeHook ]; - env.POCL_DEBUG = "error,warn"; + env = { + POCL_DEBUG = "error,warn"; + POCL_CACHE_DIR = "/build/pocl_cache"; + }; requiredSystemFeatures = [ "sys-devices" ]; } diff --git a/test/compilers/pocl.nix b/test/compilers/pocl.nix index eb6b979..ff840ab 100644 --- a/test/compilers/pocl.nix +++ b/test/compilers/pocl.nix @@ -2,7 +2,6 @@ runCommand, pocl, clinfo, - writableTmpDirAsHomeHook, }: runCommand "clinfo-pocl" @@ -10,12 +9,14 @@ runCommand "clinfo-pocl" nativeBuildInputs = [ clinfo pocl - writableTmpDirAsHomeHook ]; requiredSystemFeatures = [ "sys-devices" ]; - env.POCL_DEBUG = "error,warn"; + env = { + POCL_DEBUG = "error,warn"; + POCL_CACHE_DIR = "/build/pocl_cache"; + }; } '' echo $OCL_ICD_VENDORS