From 27e3ffc7b77967e94072cf7d9a3c8ee2c0923b49 Mon Sep 17 00:00:00 2001 From: Michele Guerini Rocco Date: Tue, 3 Dec 2024 16:54:18 +0100 Subject: [PATCH] default.nix: avoid more warnings in sandboxed builds --- default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 1acb3af..98b8a01 100644 --- a/default.nix +++ b/default.nix @@ -58,7 +58,12 @@ in FONTCONFIG_FILE = pkgs.makeFontsConf { fontDirectories = with pkgs; [ libertinus julia-mono ]; }; - XDG_CACHE_HOME = "$NIX_BUILD_TOP"; + + preConfigure = '' + # set directories for temporary files + export XDG_CACHE_HOME=$NIX_BUILD_TOP + export XDG_CONFIG_HOME=$NIX_BUILD_TOP + ''; enableParallelBuilding = true;