无法将软件包安装到nix-build项目

时间:2019-07-09 11:51:10

标签: reflex

运行nix-build -o frontend-result -A ghcjs.frontend进行遵从项目后,几次导入都会出错,其中之一是:

src/Frontend.hs:10:1: error:
    Could not find module ‘Control.Monad.Trans’
    Perhaps you meant
      Control.Monad.Fail (from base-4.11.1.0)
      Control.Monad.Fix (from base-4.11.1.0)
      Control.Monad.ST (from base-4.11.1.0)
    Use -v to see a list of the files searched for.

之后,我尝试使用cabal new-install Control

安装软件包
cabal: Could not resolve dependencies:
[__0] trying: backend-0.1 (user goal)
[__1] unknown package: obelisk-route (dependency of backend)
[__1] fail (backjumping, conflict set: backend, obelisk-route)

1 个答案:

答案 0 :(得分:0)

reflex和obelix都使用cabal声明依赖项,但实际上是通过nix安装它们。因此,假设您将上面示例中的mtl包添加到build-depends字段下的frontend.cabal中。