我正在尝试运行guix package安装以获得以下清单:
(specifications->manifest
'("noguix-hugo" ;; A CUSTOM MODULE implemented in /module/root-1/site-lisp/nonguix-hugo.scm
"go"))清单中的自定义模块声明如下:
(define-module (nonguix-hugo)
;; implementation detail
;; ....
)安装命令如下所示:
guix package --load-path="/module/root1/site-lisp" \
--load-path="/module/root-2/site-lisp" \
--manifest="/path/to/manifest.scm" \
--profile="/path/to/profile"该命令在错误消息中失败:
guix包:错误:noguix:未知包
但是,使用noguix-hugo命令构建guix build很好。
guix build --load-path="/module/root1/site-lisp" \
--load-path="/module/root-2/site-lisp" \
nonguix-package
# The command builds and outputs the module location as expected
# /gnu/store/7js349wb17371225njzll9gma8kmwf-nonguix-hugo-1.0我的问题
为什么Guix在构建模块时成功地定位了模块,但在清单文件中指定时却似乎无法找到它。
我甚至尝试将(use-modules (nonguix-hugo))添加到清单中,并将GUIX_PACKAGE_PATH设置为指定的in1,但安装仍然失败。
参考文献
发布于 2021-10-26 17:24:22
好吧,原来这是舱单上的一个错误:
(specifications->manifest
'("noguix-hugo"
"go"))应更正为:
(specifications->manifest
'("nonguix-hugo" ;; <= this line
"go"))嘿!..。
https://stackoverflow.com/questions/69726632
复制相似问题