summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/package/manager/nix/find_package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/manager/nix/find_package.lua b/xmake/modules/package/manager/nix/find_package.lua
index cc04bc898..2989930f0 100644
--- a/xmake/modules/package/manager/nix/find_package.lua
+++ b/xmake/modules/package/manager/nix/find_package.lua
@@ -636,7 +636,7 @@ function main(name, opt)
local actual_name = name
local force_nix = false
if name:startswith("nix::") then
- actual_name = name:sub(6) -- Remove "nix::" prefix
+ actual_name = name:sub(5) -- Remove "nix::" prefix
force_nix = true
end