From c9cc8bbdb105ecb27170ebc795a7688758d1cdae Mon Sep 17 00:00:00 2001 From: zzbaron Date: Fri, 26 Sep 2025 23:30:36 -0400 Subject: nix: adjustments pointed out by ruki --- xmake/modules/package/manager/nix/find_package.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xmake/modules/package/manager/nix/find_package.lua b/xmake/modules/package/manager/nix/find_package.lua index ea1b93394..41fcb62b0 100644 --- a/xmake/modules/package/manager/nix/find_package.lua +++ b/xmake/modules/package/manager/nix/find_package.lua @@ -70,10 +70,9 @@ local function generate_env_cache_key() -- Create a hash-like key from the environment local key_parts = {} - for k, v in pairs(env_data) do + for k, v in table.orderpairs(env_data) do table.insert(key_parts, k .. "=" .. v) end - table.sort(key_parts) return table.concat(key_parts, "|") end @@ -109,7 +108,7 @@ local function extract_package_info_from_path(store_path, opt) local missing = {} if not nix_store then table.insert(missing, "nix-store") end if not nix then table.insert(missing, "nix") end - print("Nix: Required tools not found: " .. table.concat(missing, ", ")) + wprint("Nix: Required tools not found: " .. table.concat(missing, ", ")) end return nil end -- cgit v1.3.1