diff options
| author | zzbaron <[email protected]> | 2025-09-26 23:30:36 -0400 |
|---|---|---|
| committer | zzbaron <[email protected]> | 2025-09-26 23:30:36 -0400 |
| commit | c9cc8bbdb105ecb27170ebc795a7688758d1cdae (patch) | |
| tree | 838fb2f40010cf43438f8d40e23643d5a5183e58 /xmake/modules/package | |
| parent | 3031598774da90d690f8bdf8d9e3406999947ece (diff) | |
nix: adjustments pointed out by ruki
Diffstat (limited to 'xmake/modules/package')
| -rw-r--r-- | xmake/modules/package/manager/nix/find_package.lua | 5 |
1 files 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 |
