guix - GNU/GUIX 无法定位清单中指定的自定义模块
问题描述
我正在尝试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-hugo:未知包
但是,构建noguix-hugo
usingguix 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 在构建模块时成功定位模块,但在清单文件中指定时似乎无法定位模块。
我什至尝试将 a 添加(use-modules (nonguix-hugo))
到 [1] 中指定的清单和设置GUIX_PACKAGE_PATH
,但安装仍然失败。
参考
[1] https://guix.gnu.org/manual/en/html_node/Package-Modules.html
解决方案
好的,原来这是清单中的一个错字:
(specifications->manifest
'("noguix-hugo"
"go"))
应更正为:
(specifications->manifest
'("nonguix-hugo" ;; <= this line
"go"))
嘘!...
推荐阅读
- javascript - 带有crypto-js的PHP hash_hmac()二进制输出
- ios - iOS粘贴板奇怪的随机崩溃
- mysql - 在数据库中存储文件结构
- ios - UICollectionView 单元格居中,为什么?
- python - 如何在 xpath 命令中使用 python scrapy 进行 Web 抓取的任意值
- visual-studio-code - Visual Studio 代码:更改尖括号 html 格式
- c# - 显示用户名或密码是否错误?
- android - 我可以推送更新来播放我的原生应用程序的商店吗(而之前的版本是在 ionic 上开发的)
- r - Shiny R中图像的滑动效果
- php - Mysql通过分页按年份获取数据