haskell - Nix 无法使用包构建 Haskell
问题描述
当我尝试跑步时
nix-shell -p "haskellPackages.ghcWithPackages (p: [p.brick])"
我收到以下错误
these derivations will be built:
/nix/store/14r35fzyw3y7mqzdzifbm9sd0599b1cl-ghc-8.6.5-with-packages.drv
building '/nix/store/14r35fzyw3y7mqzdzifbm9sd0599b1cl-ghc-8.6.5-with-packages.drv'...
/nix/store/k7yalpjh53xra535xaip1pfq6q4jgsc0-stdenv-linux/setup: line 822: /build/env-vars: No such file or directory
unpacking sources
/nix/store/k7yalpjh53xra535xaip1pfq6q4jgsc0-stdenv-linux/setup: line 822: /build/env-vars: No such file or directory
variable $src or $srcs should point to the source
builder for '/nix/store/14r35fzyw3y7mqzdzifbm9sd0599b1cl-ghc-8.6.5-with-packages.drv' failed with exit code 1
请注意,如果我传递一个空的包列表,则不会发生这种情况,因此nix-shell
它本身可以工作。
我尝试重新安装nix-env -i ghc
,但错误仍然存在
解决方案
推荐阅读
- c++ - 当同时使用 cout 和 printf 时,C++ 没有四舍五入
- sql - 计算 SQL 中连续日期的事件运行计数
- reactjs - React - Material-UI - Typescript:makeStyles 钩子在函数组件内提供了无效的钩子调用
- c# - SocketChannel DiscordSocketClient.GetChannel(id) 返回 null 并给出正确的频道 ID
- node.js - 在多个云功能中最小化冷启动时间的最佳方法
- c - 如何检查数组大小而不打印空值?
- ruby-on-rails - 了解 Docker 编写 mongodb 和 rails 应用程序
- powershell - 无法从发布定义更新 Azure 管道库组中的变量
- postgresql - Spring Boot + JDBC(不是 JPA)+ Postgres 入门?
- node.js - 安装@types/node 后,Angular 8 无法解析“fs”