(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43614285

Hacker News 用户正在讨论 Lux,一个新的 Lua 包管理器。一个用户开玩笑地表达了对“luxury”(奢侈)的不喜欢。另一个用户 andrewmcwatters 询问了 Lux 与 Lua 的 `package.path` 和 `package.cpath` 的集成,以及它如何检测来自像 Brew 这样的工具的安装,以及是否能够直接从 GitHub 仓库安装。 作者 mrcjkb 回复说,Lux 的命令会设置必要的环境变量,并且它使用 pkg-config 来检测 Lua 的安装,必要时会回退到本地构建。虽然计划支持从 GitHub 仓库安装,但该项目的目标是避免直接发布与 LuaRocks(成熟的 Lua 包管理器)不兼容的 Rockspec。

相关文章
  • Show HN:Lux——一款豪华的Lua包管理器 2025-04-07
  • (评论) 2025-03-14
  • (评论) 2025-03-17
  • (评论) 2024-08-01
  • (评论) 2025-03-28

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    Show HN: Lux – a luxurious package manager for Lua (mrcjkb.dev)
    17 points by mrcjkb 16 minutes ago | hide | past | favorite | 3 comments










    I hate luxury...


    I don't see this listed here or the other associated sites, so I'll ask:

    1. Does this integrate natively with `package.path` and `package.cpath`?

    2. Does it detect non-standard, popular installations like through brew(1)?

    3. Can you install by GitHub `:user/:repository`?

    Also, neat project! Nice work.



    1. The commands, `lx run` and `lx lua` will set the `PATH`, `LUA_PATH` and `LUA_CPATH`. And there's a `lx path` command for setting those environment variables.

    2. It defaults to using pkg-config to detect Lua installations and will fall back to installing Lua via the `lua_src` and `luajit_src` crates if it can't find them. We may eventually add support for other tools like vcpkg.

    3. Not yet. It's on our roadmap to add support for that to our lux.toml/dependencies spec, but we probably won't allow rockspecs with that to be published to luarocks.org, because we don't want to be the reason people publish packages that can't be built by luarocks.

    Thanks :)







    Join us for AI Startup School this June 16-17 in San Francisco!


    Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



    Search:
    联系我们 contact @ memedata.com