【发布时间】:2019-05-17 04:13:50
【问题描述】:
我运行 NixOS,因此无法更新 stack,因为 nixpkgs 在我的稳定分支上总是落后。从the official docs我们可以构建以下函数来升级stack:
upgradeLocalStackInNixOS() {
git clone https://github.com/commercialhaskell/stack.git stack
cd stack
cabal2nix --shell ./. --no-check --no-haddock > shell.nix
nix-env -i -f shell.nix
}
问题:这会产生以下错误:
Cloning into 'stack'...
remote: Enumerating objects: 44411, done.
remote: Total 44411 (delta 0), reused 0 (delta 0), pack-reused 44411
Receiving objects: 100% (44411/44411), 14.82 MiB | 1.05 MiB/s, done.
Resolving deltas: 100% (31314/31314), done.
*** found package.yaml. Using hpack...
error: 'f' at /home/george/.dotfiles/nixos/stack/shell.nix:7:7 called without required argument 'pantry', at /nix/store/i9f158cv3dfkn30pb4bssba575h7f409-nixos-18.09.1446.db561c90ef3/nixos/pkgs/development/haskel
l-modules/make-package-set.nix:87:27
【问题讨论】:
标签: haskell-stack nix nixos