![无法安装vim插件](https://linux22.com/image/48147/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85vim%E6%8F%92%E4%BB%B6.png)
我无法在 nixOS 上安装任何 vim 插件
运行命令:
nix-env -i vimplugin-Syntastic
给出最后 3 行输出:
output path ‘/nix/store/3bcdjr4hwgrimcimdg2115prpfm83xca-syntastic-4782184’ should
have r:sha256 hash ‘1vjh3a3w6whvaws86z48j8bp7dgavvix8a2kgjn195axs83hpkxy’, instead has
‘01a1px7i77ajc4y8czwhkhhqif89q6yf26wpjakh3asdv7cvnidm’
cannot build derivation ‘/nix/store/478msfr0bm6h64zp0ri5c98dgkp4zrcd-vimplugin-
Syntastic-2015-02-17.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/478msfr0bm6h64zp0ri5c98dgkp4zrcd-vimplugin-Syntastic-2015-02-17.drv’ failed
在最后几行之前,所有其他输出都显示正常。我在使用其他 vim 插件时遇到了完全相同的问题,我尝试了其他 4 个插件:
Solarized
Nerd commenter
airline
ctrp
答案1
嗯,看来我们在表达式中指定了错误的哈希值。我向 master 推送了修复程序https://github.com/NixOS/nixpkgs/commit/f799749编辑:实际上下面的 46b48b0b4 提交解决了坏插件(可能它们的所有哈希值都被破坏了)。