diff options
| author | zzbaron <[email protected]> | 2025-09-16 13:06:24 -0400 |
|---|---|---|
| committer | zzbaron <[email protected]> | 2025-09-16 13:06:24 -0400 |
| commit | 600a1817c2f6af5a59a8f9c6f759e6b34f300468 (patch) | |
| tree | dd555343e7bea96a0509fcd9c864828956052f3a | |
| parent | c6946e8f3dae13c3d8a94dfaea850e4ea38a075e (diff) | |
added nixos nix path to find_package
| -rw-r--r-- | xmake/modules/package/manager/nix/find_package.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/nix/find_package.lua b/xmake/modules/package/manager/nix/find_package.lua index 7bfd6282d..d9c2a3197 100644 --- a/xmake/modules/package/manager/nix/find_package.lua +++ b/xmake/modules/package/manager/nix/find_package.lua @@ -144,8 +144,10 @@ function _get_available_nix_paths() -- Get paths from common Nix environment locations local env_locations = { + os.getenv("NIX_PROFILES") or "", + (os.getenv("HOME") or "") .. "/.nix-profile", "/nix/var/nix/profiles/default", - (os.getenv("HOME") or "") .. "/.nix-profile" + "/run/current-system/sw" -- NixOS } for _, location in ipairs(env_locations) do |
