Haskell 尼克斯阴谋集团找不到依赖项

Haskell 尼克斯阴谋集团找不到依赖项,haskell,cabal,nixos,Haskell,Cabal,Nixos,尝试在nix操作系统上构建nix: cabal --enable-nix install Resolving dependencies... Configuring alex-3.2.4... Configuring happy-1.19.9... Configuring c2hs-0.28.3... Building alex-3.2.4... Building c2hs-0.28.3... Building happy-1.19.9... Installed alex-3.2.4 Inst

尝试在nix操作系统上构建nix:

 cabal --enable-nix install
Resolving dependencies...
Configuring alex-3.2.4...
Configuring happy-1.19.9...
Configuring c2hs-0.28.3...
Building alex-3.2.4...
Building c2hs-0.28.3...
Building happy-1.19.9...
Installed alex-3.2.4
Installed happy-1.19.9
Installed c2hs-0.28.3
Configuring PathFinder-0.1.0.0...
Failed to install PathFinder-0.1.0.0
Build log ( /home/liminal18/.cabal/logs/ghc-7.10.3/PathFinder-0.1.0.0-Ct8hE4tpk2v4C0mK830b0v.log ):
cabal: Entering directory '.'
Configuring PathFinder-0.1.0.0...
cabal: The following package dependencies were requested
--dependency='alex=alex-3.2.4-EcO8GwV5VLDHmJwcir1l4u'
--dependency='c2hs=c2hs-0.28.3-ConONz4xJmFDgUCTAA6Wmq'
--dependency='happy=happy-1.19.9-4PZ32S6SvwZBaSXkci9sAS'
however the given installed package instance does not exist.
cabal: Leaving directory '.'
cabal: Error: some packages failed to install:
PathFinder-0.1.0.0-Ct8hE4tpk2v4C0mK830b0v failed during the configure step.
The exception was:
ExitFailure 1
我得到了与out相同的错误——enable nix

cabal configure
Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
trying: PathFinder-0.1.0.0 (user goal)
unknown package: c2hs (dependency of PathFinder-0.1.0.0)
fail (backjumping, conflict set: PathFinder, c2hs)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: PathFinder, c2hsTrying configure
anyway.
Configuring PathFinder-0.1.0.0...
cabal: Encountered missing dependencies:
alex -any, c2hs -any, happy -any
项目的源代码如下:


我可以为C2H和其他依赖项进行cabal安装,但是我的构建脚本在nix操作系统上似乎不起作用。如果你能解决这个问题,请告诉我。我想我只是配置了一些错误。

在cabal文件中,您应该使用
构建工具依赖项
字段,而不是
构建依赖项
来处理您所依赖的可执行文件。

cabal:./PathFinder.cabal:23:解析字段“构建工具依赖项”失败。